View: 178|Reply: 2

Mars Rover line following

[Copy link]

1

Threads

1

Posts

4

Credits

Newbie

Rank: 1

Credits
4
Post time 2023-2-24 02:09:03 | Show all posts |Read mode
When I try to use line following the Rover always runs backwards.
Initially when moving the Rover forward it went in reverse. I edited Move.py to correct this and no problem.
I have tried editing Findline.py in a similar way but Rover still runs backward.
Any help would be appreciated.
Thanks
Reply

Use magic Report

0

Threads

1

Posts

4

Credits

Newbie

Rank: 1

Credits
4
Post time 2023-8-17 16:42:53 | Show all posts
When I make the same changes to Findline.py, Rover still moves in the wrong direction.
drift hunters
Reply

Use magic Report

0

Threads

44

Posts

153

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
153
Post time 2023-8-25 16:38:12 | Show all posts
Lines 22-23 in the move.py file can be modified. Swap 0 and 1 in two lines of code.
  1. Dir_forward   = 1
  2. Dir_backward  = 0
Copy the Code
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules