roneos
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs Groups
light_sensor.h
Go to the documentation of this file.
1 
10 #ifndef LIGHT_SENSOR_H_
11 #define LIGHT_SENSOR_H_
12 
13 /******** Defines ********/
14 
15 #define LIGHT_SENSOR_FRONT_RIGHT 0
16 #define LIGHT_SENSOR_FRONT_LEFT 1
17 
18 // for v11 robots
19 #define LIGHT_SENSOR_REAR 2
20 
21 //for v12 robots
22 #define LIGHT_SENSOR_REAR_LEFT 2
23 #define LIGHT_SENSOR_REAR_RIGHT 3
24 
25 
26 /******** Functions ********/
27 
34 void lightSensorInit(void);
35 
36 
48 int32 lightSensorGetValue(uint32 light_sensor); // python rone
49 
50 
51 #endif /* LIGHT_SENSOR_H_ */