class IMUGyro : Gyro
A Gyro instance that uses the REV Robotic Expansion's built-in gyro sensor (IMU) to obtain measurements.
companion object Companion : Factory<IMUGyro> |
IMUGyro(imu: BNO055IMU, parameters: Parameters)
A Gyro instance that uses the REV Robotic Expansion's built-in gyro sensor (IMU) to obtain measurements. |
val angleModifier: Double
A number which all gyro measurements are multiplied by. Used to ensure that getAbsoluteAngle() conforms to the spec laid out in Gyro. You don't need to know how this works to use IMUGyro. |
|
val imu: BNO055IMU |
|
val isCalibrated: Boolean
Whether the gyro has been successfully calibrated. See GyroTestOpMode for a demonstration of how to wait for a gyro to calibrate. |
|
val parameters: Parameters |
fun calibrate(): Unit
Calibrates the gyro, or begins the calibration process. Usually called immediately after initialize. Implementation details vary by specific gyro sensor. In some cases, you may have to wait a few seconds before the gyro is calibrated. See isCalibrated. |
|
fun getAbsoluteAngle(): Double
Returns the angle that the robot is facing. |
|
fun initialize(): Unit
Initializes the gyro. Usually called in an op mode's init phase. Implementation details vary by specific gyro sensor. |
val IMU_NAME: String |
|
val IMU_PARAMETERS: Parameters |
fun standard(hardwareMap: HardwareMap): IMUGyro |