ADXRS450_GyroSim

class wpilib.simulation.ADXRS450_GyroSim(gyro: wpilib.ADXRS450_Gyro)

Bases: pybind11_builtins.pybind11_object

Class to control a simulated ADXRS450 gyroscope.

Constructs from a ADXRS450_Gyro object.

Parameters

gyro – ADXRS450_Gyro to simulate

setAngle(angle: degrees)None

Sets the angle.

Parameters

angle – The angle (clockwise positive).

setRate(rate: degrees_per_second)None

Sets the angular rate (clockwise positive).

Parameters

rate – The angular rate.