NAVX Calibration problems

Hi CD,

did you have problems calibrating the NAVX?
Every time I calibrate it, when I call the isCalibrating method, it always returns false.

I never find the true values ​​for the YAW angle.

A NavX-sensor automatically calibrates the onboard gyros and accelerometers when it is powered on. This calibration takes typically 20 seconds, as long as the robot is still during that time. The roborio takes more than 20 seconds to completely boot. So isCalibrating() should usually return false - unless it’s reset button is pressed while the robot is still running.

What does a “true” value for a gyro mean?

For navX-sensor yaw, 0 degrees is the direction the sensor is pointed at when the yaw was last reset (e.g., via zeroYaw()). Therefore the gyro angle is ~relative~ to the angle at which it was last reset.

Are you using zeroYaw() in your code?

As a follow-up, if you have a moment you’re encouraged to read these two guides:

navX-sensor Gyro/Accelerometer Calibration

Zeroing Yaw

More guidance is available in the FRC Best Practices section.

Thank you for your help, actually the issue was in the code.

I fixed it thank you.

Thank you for your help, actually the issue was in the code.

I fixed it thank you.