WPILibC++ 2024.3.2
|
Class to control a simulated ADXRS450 gyroscope. More...
#include <frc/simulation/ADXRS450_GyroSim.h>
Public Member Functions | |
ADXRS450_GyroSim (const ADXRS450_Gyro &gyro) | |
Constructs from a ADXRS450_Gyro object. More... | |
void | SetAngle (units::degree_t angle) |
Sets the angle. More... | |
void | SetRate (units::degrees_per_second_t rate) |
Sets the angular rate (clockwise positive). More... | |
Class to control a simulated ADXRS450 gyroscope.
|
explicit |
Constructs from a ADXRS450_Gyro object.
gyro | ADXRS450_Gyro to simulate |
void frc::sim::ADXRS450_GyroSim::SetAngle | ( | units::degree_t | angle | ) |
Sets the angle.
angle | The angle (clockwise positive). |
void frc::sim::ADXRS450_GyroSim::SetRate | ( | units::degrees_per_second_t | rate | ) |
Sets the angular rate (clockwise positive).
rate | The angular rate. |