mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpilib] ADIS16470: Add no-param GetAngle and GetRate (#6184)
This helps with backwards compatibility.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user