Which turn function is more accurate and reliable? #1263
Closed
Samb19802000
started this conversation in
General
Replies: 2 comments 6 replies
-
|
The accuracy is the same but they serve different purposes. If you just want to turn by a given angle, just use
|
Beta Was this translation helpful? Give feedback.
5 replies
-
|
Reading between the lines, I think you're asking about a form of absolute angles. To accomplish that, you can calculate the remaining angle and combine it with @dlech's answer: drive_base.use_gyro(True)
# For example if you want to go to 180
remaining_angle = 180 - hub.imu.heading()
drive_base.turn(remaining_angle) |
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.
-
Hi Experts,
We can use the following two methods to turn the robot to a target angle.
my question is which method is more reliable and accurate?
I appreciate your feedback.
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions