![]() |
roneos
Operating System for the r-one robot
|
Interface to initialize and read light sensor ring on robot. More...
Go to the source code of this file.
Functions | |
void | lightSensorInit (void) |
Initializes light sensor. More... | |
int32 | lightSensorGetValue (uint32 light_sensor) |
Gets the ADC value of the specified light sensor. More... | |
Interface to initialize and read light sensor ring on robot.
int32 lightSensorGetValue | ( | uint32 | light_sensor) |
Gets the ADC value of the specified light sensor.
If the input light sensor is not recognized, returns 0
light_sensor | specifies which light sensor you want to check. Only {0, 1, 2} are allowed on v11 robots and {0, 1, 2, 3} allowed on v12 robots |
void lightSensorInit | ( | void | ) |
Initializes light sensor.
Sets sampling speed and configures and enables the light sensor.