9#include "wpi/units/angle.hpp"
10#include "wpi/units/angular_velocity.hpp"
60 wpi::units::radians_per_second_t
GetRate()
const;
67 wpi::units::radians_per_second_t
GetRateX()
const;
74 wpi::units::radians_per_second_t
GetRateY()
const;
81 wpi::units::radians_per_second_t
GetRateZ()
const;
118 wpi::units::radian_t m_angleXOffset = 0_rad;
119 wpi::units::radian_t m_angleYOffset = 0_rad;
120 wpi::units::radian_t m_angleZOffset = 0_rad;
A move-only C++ wrapper around a HAL simulator device handle.
Definition SimDevice.hpp:278
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.hpp:169
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.hpp:26
wpi::units::radians_per_second_t GetRateZ() const
Gets the rate of turn in radians-per-second around the Z-axis.
wpi::units::radians_per_second_t GetRateY() const
Gets the rate of turn in radians-per-second around the Y-axis.
wpi::units::radian_t GetAngleY() const
Gets the currently reported angle around the Y-axis.
void Reset()
Reset the gyro angles to 0.
wpi::units::radians_per_second_t GetRateX() const
Gets the rate of turn in radians-per-second around the X-axis.
wpi::units::radian_t GetAngleX() const
Gets the currently reported angle around the X-axis.
wpi::units::radian_t GetAngle() const
Return the actual angle in radians that the robot is currently facing.
wpi::units::radian_t GetAngleZ() const
Gets the currently reported angle around the Z-axis.
wpi::math::Rotation2d GetRotation2d() const
Gets the angle the robot is facing.
wpi::units::radians_per_second_t GetRate() const
Return the rate of rotation of the gyro.
XRPGyro()
Constructs an XRPGyro.
Definition XRPOnBoardIO.hpp:13