39 : m_port(static_cast<sensor_port_t>(port)), m_type(type)
41 ev3_sensor_config(m_port, m_type);
65 return static_cast<sensor_type_t
>(ev3_sensor_get_type(m_port));
virtual ~Sensor()
Destructor of class Sensor.
Sensor(SensorPort port, sensor_type_t type)
Constructor of class Sensor.
Class Sensor. API for working with sensor.
sensor_type_t getType()
Get actual sensor type.
SensorPort
Enum with index of sensor port.
sensor_port_t getPort()
Get sensor port set in constructor.