View: 255|Reply: 1

Reverse servo pan tilt rover mars

[Copy link]

3

Threads

4

Posts

23

Credits

Newbie

Rank: 1

Credits
23
Post time 2019-9-29 01:12:44 From the mobile phone | Show all posts |Read mode
Hi,

In our PiCar-B set, I found that the servo motor pan tilt at opposite directions when instructed and in openCV mode as well.  The camera is working correctly.  How to change the code to only reverse the servo motor pan tilt  part?



Thanks!

Pascal
Reply

Use magic Report

0

Threads

3

Posts

122

Credits

Registered member

Rank: 2

Credits
122
Post time 2019-10-11 07:33:46 | Show all posts
In the client.py gui, swap the values between the 'Look Up Max' and 'Look Down Max' for tilt.

As for panning, you'll have to modify the set.txt file in the root directory of the RPi. Swap the numbers 'look_left_max' and 'look_right_max'
Reply

Use magic Report

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

Points Rules