61 units::radians_per_second_t
GetRate()
const;
119 units::radian_t m_angleXOffset = 0_rad;
120 units::radian_t m_angleYOffset = 0_rad;
121 units::radian_t m_angleZOffset = 0_rad;
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.h:31
Use a rate gyro to return the robots heading relative to a starting position.
Definition XRPGyro.h:26
units::radians_per_second_t GetRateX() const
Gets the rate of turn in radians-per-second around the X-axis.
units::radians_per_second_t GetRateZ() const
Gets the rate of turn in radians-per-second around the Z-axis.
void Reset()
Reset the gyro angles to 0.
units::radian_t GetAngle() const
Return the actual angle in radians that the robot is currently facing.
units::radian_t GetAngleX() const
Gets the currently reported angle around the X-axis.
units::radians_per_second_t GetRateY() const
Gets the rate of turn in radians-per-second around the Y-axis.
units::radians_per_second_t GetRate() const
Return the rate of rotation of the gyro.
frc::Rotation2d GetRotation2d() const
Gets the angle the robot is facing.
units::radian_t GetAngleY() const
Gets the currently reported angle around the Y-axis.
XRPGyro()
Constructs an XRPGyro.
units::radian_t GetAngleZ() const
Gets the currently reported angle around the Z-axis.
A move-only C++ wrapper around a HAL simulator device handle.
Definition SimDevice.h:645
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.h:536