ADIS16470_IMUSim
- class wpilib.simulation.ADIS16470_IMUSim(imu: wpilib._wpilib.ADIS16470_IMU)
Bases:
pybind11_object
Class to control a simulated ADIS16470 IMU.
Constructs from a ADIS16470_IMU object.
- Parameters:
imu – ADIS16470_IMU to simulate
- setAccelX(accel: wpimath.units.meters_per_second_squared) None
Sets the X axis acceleration.
- Parameters:
accel – The acceleration.
- setAccelY(accel: wpimath.units.meters_per_second_squared) None
Sets the Y axis acceleration.
- Parameters:
accel – The acceleration.
- setAccelZ(accel: wpimath.units.meters_per_second_squared) None
Sets the Z axis acceleration.
- Parameters:
accel – The acceleration.
- setGyroAngleX(angle: wpimath.units.degrees) None
Sets the X axis angle (CCW positive).
- Parameters:
angle – The angle.
- setGyroAngleY(angle: wpimath.units.degrees) None
Sets the Y axis angle (CCW positive).
- Parameters:
angle – The angle.
- setGyroAngleZ(angle: wpimath.units.degrees) None
Sets the Z axis angle (CCW positive).
- Parameters:
angle – The angle.
- setGyroRateX(angularRate: wpimath.units.degrees_per_second) None
Sets the X axis angular rate (CCW positive).
- Parameters:
angularRate – The angular rate.
- setGyroRateY(angularRate: wpimath.units.degrees_per_second) None
Sets the Y axis angular rate (CCW positive).
- Parameters:
angularRate – The angular rate.
- setGyroRateZ(angularRate: wpimath.units.degrees_per_second) None
Sets the Z axis angular rate (CCW positive).
- Parameters:
angularRate – The angular rate.