9#include "wpi/units/acceleration.hpp"
10#include "wpi/units/angle.hpp"
11#include "wpi/units/angular_velocity.hpp"
126 wpi::units::radian_t GetYawNoOffset();
128 wpi::units::radian_t m_yawOffset{0};
wpi::units::radian_t GetYaw()
Get the yaw value.
void ResetYaw()
Reset the current yaw value to 0.
wpi::math::Quaternion GetQuaternion()
Get the 3D orientation as a wpi::math::Quaternion.
OnboardIMU(MountOrientation mountOrientation)
Constructs a handle to the Systemcore onboard IMU.
wpi::units::radians_per_second_t GetGyroRateX()
Get the angular rate about the X axis of the IMU.
wpi::units::radian_t GetAngleZ()
Get the angle about the Z axis of the IMU.
MountOrientation
A mount orientation of Systemcore.
Definition OnboardIMU.hpp:23
@ kPortrait
Portrait (vertically mounted with the short edge of Systemcore parallel to the ground).
Definition OnboardIMU.hpp:31
@ kFlat
Flat (mounted parallel to the ground).
Definition OnboardIMU.hpp:25
@ kLandscape
Landscape (vertically mounted with long edge of Systemcore parallel to the ground).
Definition OnboardIMU.hpp:28
wpi::units::radian_t GetAngleY()
Get the angle about the Y axis of the IMU.
wpi::units::meters_per_second_squared_t GetAccelY()
Get the acceleration along the Z axis of the IMU.
wpi::math::Rotation2d GetRotation2d()
Get the yaw as a wpi::math::Rotation2d.
wpi::units::radian_t GetAngleX()
Get the angle about the X axis of the IMU.
wpi::units::radians_per_second_t GetGyroRateZ()
Get the angular rate about the Z axis of the IMU.
wpi::units::meters_per_second_squared_t GetAccelX()
Get the acceleration along the X axis of the IMU.
wpi::units::radians_per_second_t GetGyroRateY()
Get the angular rate about the Y axis of the IMU.
wpi::units::meters_per_second_squared_t GetAccelZ()
Get the acceleration along the Z axis of the IMU.
wpi::math::Rotation3d GetRotation3d()
Get the 3D orientation as a wpi::math::Rotation3d.
Represents a quaternion.
Definition Quaternion.hpp:20
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.hpp:26
A rotation in a 3D coordinate frame, represented by a quaternion.
Definition Rotation3d.hpp:69
Definition CvSource.hpp:15