Replies: 2 comments 4 replies
-
|
What kind of robot do you use. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
When motors are being actively controlled, stationary returns false. Put another way, the IMU won't recalibrate itself when motors are active. But I can see why this would be inconvenient if you want to test |
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, here I am again... This time a small program and hopefully reproduceable.
If I do a
run_target(… Stop.HOLD…)before I call aimu.stationary(), theimu.stationary()will always return false. Tried with Technic and Prime hubs, pybricks 3.6.1. The same withStop.BRAKE.It happens even with:
angular_velocity_threshold=20, and/oracceleration_threshold=5000, so I suppose it has nothing to do with it.By the way, it seems that the order of the returned values of
imu.settings()is not exactly the same as stated in documentation… theheading_correctionis in the end.The sample program:
Beta Was this translation helpful? Give feedback.
All reactions