Class ColorSensor. API for working with color sensor. More...
#include <ev3cxx_color_sensor.h>
Data Structures | |
struct | ColorRaw_t |
Public Member Functions | |
ColorSensor (SensorPort port) | |
Constructor of class ColorSensor. More... | |
int | getReflected () |
Get reflected light intensity. Red LED on. More... | |
rgb_raw_t | getReflectedRawRgb () |
Get raw reflected light intensity (red, green, blue). Red LED on. More... | |
int | getAmbient () |
Get ambient light intensity. Red LEDs off. More... | |
colorid_t | getColor () |
Get color. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Sensor | |
Sensor (SensorPort port, sensor_type_t type) | |
Constructor of class Sensor. More... | |
virtual | ~Sensor () |
Destructor of class Sensor. | |
sensor_port_t | getPort () |
Get sensor port set in constructor. More... | |
sensor_type_t | getType () |
Get actual sensor type. More... | |
Protected Attributes inherited from Sensor | |
sensor_port_t | m_port |
sensor_type_t | m_type |
Class ColorSensor. API for working with color sensor.
Definition at line 20 of file ev3cxx_color_sensor.h.
|
inline |
Constructor of class ColorSensor.
port | Port index (1-4). |
Definition at line 30 of file ev3cxx_color_sensor.h.
|
inline |
Get ambient light intensity. Red LEDs off.
Definition at line 57 of file ev3cxx_color_sensor.h.
|
inline |
Get color.
Definition at line 66 of file ev3cxx_color_sensor.h.
|
inline |
Get reflected light intensity. Red LED on.
Definition at line 37 of file ev3cxx_color_sensor.h.
|
inline |
Get raw reflected light intensity (red, green, blue). Red LED on.
Definition at line 46 of file ev3cxx_color_sensor.h.