[wpilib] ADIS16470: Add no-param GetAngle and GetRate (#6184)

This helps with backwards compatibility.
This commit is contained in:
Isaac Turner
2024-01-13 03:00:42 +08:00
committed by GitHub
parent 2386e44f3a
commit d181e353a0
2 changed files with 60 additions and 4 deletions

View File

@@ -215,18 +215,20 @@ class ADIS16470_IMU : public wpi::Sendable,
/**
* Returns the axis angle (CCW positive).
*
* @param axis The IMUAxis whose angle to return.
* @param axis The IMUAxis whose angle to return. Defaults to user configured
* Yaw.
* @return The axis angle (CCW positive).
*/
units::degree_t GetAngle(IMUAxis axis) const;
units::degree_t GetAngle(IMUAxis axis = IMUAxis::kYaw) const;
/**
* Returns the axis angular rate (CCW positive).
*
* @param axis The IMUAxis whose rate to return.
* @param axis The IMUAxis whose rate to return. Defaults to user configured
* Yaw.
* @return Axis angular rate (CCW positive).
*/
units::degrees_per_second_t GetRate(IMUAxis axis) const;
units::degrees_per_second_t GetRate(IMUAxis axis = IMUAxis::kYaw) const;
/**
* Returns the acceleration in the X axis.