WPILibC++ 2024.3.2
frc::sim::ADXRS450_GyroSim Class Reference

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...
 

Detailed Description

Class to control a simulated ADXRS450 gyroscope.

Constructor & Destructor Documentation

◆ ADXRS450_GyroSim()

frc::sim::ADXRS450_GyroSim::ADXRS450_GyroSim ( const ADXRS450_Gyro gyro)
explicit

Constructs from a ADXRS450_Gyro object.

Parameters
gyroADXRS450_Gyro to simulate

Member Function Documentation

◆ SetAngle()

void frc::sim::ADXRS450_GyroSim::SetAngle ( units::degree_t  angle)

Sets the angle.

Parameters
angleThe angle (clockwise positive).

◆ SetRate()

void frc::sim::ADXRS450_GyroSim::SetRate ( units::degrees_per_second_t  rate)

Sets the angular rate (clockwise positive).

Parameters
rateThe angular rate.

The documentation for this class was generated from the following file: