16 mOffset(DEFAULT_OFFSET)
18 ev3_gyro_sensor_reset(
getPort());
19 (void)ev3_gyro_sensor_get_rate(
getPort());
34 ev3_gyro_sensor_reset(
getPort());
41 return ev3_gyro_sensor_get_rate(
getPort()) - mOffset;
48 return ev3_gyro_sensor_get_angle(
getPort());
sensor_port_t getPort(void) const
void setOffset(int16_t offset)
int16_t getAnglerVelocity(void) const
int16_t getAngle(void) const