40 double get()
const override;
49 double getRemapped(
double iupperBound = 1800,
double ilowerBound = -1800)
const;
73 std::int32_t
reset(
double inewAngle);
PROS API header provides high-level user functionality.
std::int32_t reset() override
Reset the rotation value to zero.
std::int32_t reset(double inewAngle)
Resets rotation value to desired value For example, reset(0) will reset the sensor to zero.
double controllerGet() override
Get the sensor value for use in a control loop.
IMU(std::uint8_t iport, IMUAxes iaxis=IMUAxes::z)
An inertial sensor on the given port.
bool isCalibrating() const
std::int32_t calibrate()
Calibrate the IMU.
double get() const override
Get the current rotation about the configured axis.
double getAcceleration() const
Get the current acceleration along the configured axis.
double readAngle() const
Get the current rotation about the configured axis.
double getRemapped(double iupperBound=1800, double ilowerBound=-1800) const
Get the current sensor value remapped into the target range ([-1800, 1800] by default).