Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
first:adxrs450_gyro_board_frc:java [10 Dec 2018 21:10]
Kristen Chong [Sensor Initialization and Calibration]
first:adxrs450_gyro_board_frc:java [10 Dec 2018 21:10] (current)
Kristen Chong [Re-Zeroing the Gyro]
Line 24: Line 24:
 \\ \\
 \\ \\
-===== Re-Zeroing the Gyro =====+===== Re-Zeroing the Gyro with reset() ​=====
 Sometimes it may be necessary to reset the gyro's "zero degrees"​ position. All gyros will have some amount of drift over time and it's physically impossible to calibrate out all sources of drift. In this case, you can use reset() to reset the current gyro heading to 0 degrees. When doing this, your robot should be facing the direction you want zero degrees to be, particularly if you are driving with field-oriented drive using an omnidirectional drive base. Otherwise, your robot may begin to behave incorrectly. For this reason, you should never automate this routine. Note that this **does not** recalibrate the gyro, so you don't have to be sitting still to perform this method properly. Sometimes it may be necessary to reset the gyro's "zero degrees"​ position. All gyros will have some amount of drift over time and it's physically impossible to calibrate out all sources of drift. In this case, you can use reset() to reset the current gyro heading to 0 degrees. When doing this, your robot should be facing the direction you want zero degrees to be, particularly if you are driving with field-oriented drive using an omnidirectional drive base. Otherwise, your robot may begin to behave incorrectly. For this reason, you should never automate this routine. Note that this **does not** recalibrate the gyro, so you don't have to be sitting still to perform this method properly.
 \\ \\
first/adxrs450_gyro_board_frc/java.1544472611.txt.gz · Last modified: 10 Dec 2018 21:10 by Kristen Chong