-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Car cannot run in a straight line #1020
Comments
Follow the doc. This is probably not a bug therefore I am closing the issue now. Reopen if I misunderstand your question. |
The midpoint is assumed to be the average of the two steering values. So that means you need to be calibrated such that the left and right wheels are at the same angles (relative to straight ahead) at their maximum steering. Calibration is a little tricky; make sure you are picking the value that just barely makes the servo whine, then back off by 1 until it stops whining. Do this for both left and right. Generally you will find that if you add the left and right PWM values and divide by two you should get something very close to 370. If you do not you may not be evenly calibrated between left and right. So in our case (460 + 290) / 2 = 375, so it is close, but I would apply the 'just until it whines' methodology I suggested. Another way to try this is to start with the wheel turned using your full left value, then set to the average of the left and right values to see if it goes in the middle. do this again starting at the full right value. Does it stop in a straight ahead position? If not then keep adjusting your leflt/right values. |
The car cannot run in a straight line and I'm looking for something like
STEERING_MID
to adjust itPWM Servo Driver PCA9685 16 Channel (SunFounder)
The text was updated successfully, but these errors were encountered: