40 return ev3_gyro_sensor_get_angle(m_port);
50 return ev3_gyro_sensor_get_rate(m_port);
61 ev3_gyro_sensor_reset(m_port);
Class Sensor. API for working with sensor.
EV3RT CPP API for sensor.
void resetHard()
Hard reset gyro. Solve the problem with drifting value after standard reset().
SensorPort
Enum with index of sensor port.
int angle()
Get angle in degrees from gyro.
GyroSensor(SensorPort port)
Constructor of class GyroSensor.
int rate()
Get angular speed from gyro. Speed = degrees per seconde.
Class GyroSensor. API for working with gyro sensor.