![]() |
Help with Gyro for Field-centric Mecanum Drive
So we have been trying to implement the gyro for field centric mecanum drive. So far, when the gyro code is hooked up to the holonomic drive, the robot spins out of control. I think I managed to fix that problem (its value used to read INF), but now the gyro angle constantly counts up at roughly 0.0001 per second and does not change when the robot rotates.
Gain is set to 0.0125 on front panel and have a button on my controller to reset the gyro. Could our gyro be faulty or something wrong with the code? Begin ![]() Teleop ![]() |
Re: Help with Gyro for Field-centric Mecanum Drive
What gyro are you using? What connections on it are you using?
The Yaw Rate Sensor "gyro" board from the Kit of Parts a few years ago has a temperature output as well as a turn rate output. Accidentally connecting the temperature to a gyro accumulator can have the effect you described. |
Re: Help with Gyro for Field-centric Mecanum Drive
Yes, we are using the am-2067. It's connected with a pwm cable to DIO 1 with the signal wire on the rate pin, power wire to the next pin, and ground wire to the corner pin.
|
Re: Help with Gyro for Field-centric Mecanum Drive
Quote:
|
Re: Help with Gyro for Field-centric Mecanum Drive
....... Thank you! getting my brain checked
|
| All times are GMT -5. The time now is 10:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi