27 ADIGyro(std::uint8_t iport,
double imultiplier = 1);
46 ADIGyro(std::pair<std::uint8_t, std::uint8_t> iports,
double imultiplier = 1);
53 double get()
const override;
62 double getRemapped(
double iupperBound = 1800,
double ilowerBound = -1800)
const;
80 pros::c::ext_adi_gyro_t
gyro;
PROS API header provides high-level user functionality.
ADIGyro(std::uint8_t iport, double imultiplier=1)
A gyroscope on the given ADI port.
double getRemapped(double iupperBound=1800, double ilowerBound=-1800) const
Get the current sensor value remapped into the target range ([-1800, 1800] by default).
pros::c::ext_adi_gyro_t gyro
std::int32_t reset() override
Reset the sensor to zero.
double get() const override
Get the current sensor value.
ADIGyro(std::pair< std::uint8_t, std::uint8_t > iports, double imultiplier=1)
A gyroscope on the given ADI port.
double controllerGet() override
Get the sensor value for use in a control loop.