Unexpected wheel "jump" when calling straight() after turn() #2436
Unanswered
TeamGomeNeve
asked this question in
Q&A
Replies: 2 comments 4 replies
-
|
Hello, Just a thought: Something like: drive_base.use_gyro(True)
drive_base.reset()
wait(250) # stay still for a moment to allow the gyro to get ready
for _ in range(8):
drive_base.straight(120, Stop.NONE)
drive_base.curve(100, 45, Stop.NONE)Bert |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I think the "jump" issue is due purely to mechanics, namely motor play. When you turn, one of the motors is engaged clockwise, the other one counterclockwise. Hence, when you drive straight after a turn, one of the wheels locks immediately, the other motor needs to turn by the amount of play (say 0.5°) before it engages. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
High precision issue when using
turn()followed bystraight()and vice versaI'm working with my robotics class to achieve high precision in FLL.
When using
drive_base.turn()ordrive_base.straight(), the robot works perfectly.However, when I call the
straight()function immediately after aturn(), the robot makes a small "jump" with only the outer wheel before it starts moving straight.The only solution I’ve found is to use the
reset_angle()function on both the right and left motors.After solving this issue, I also noticed that sometimes—though not always—when the robot finishes a straight movement after a turn, it makes a small forward "jump" when stopping, influencing precision.
2. How can I solve this and enhance precision?
Beta Was this translation helpful? Give feedback.
All reactions