C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
back_compatibility.h
Go to the documentation of this file.
1 
6 #ifndef EV3_API_BACK_COMPATIBILITY_H
7 #define EV3_API_BACK_COMPATIBILITY_H
8 
9 // Sensor Names
10 #include "ev3_sensors.h"
11 
12 #define NO_SEN -1 // No sensor connected
13 // Touchsenor
14 #define TOUCH_PRESS 1 // Press
15 
16 // Light sensor
17 #define COL_REFLECT 2 // Reflect
18 #define COL_AMBIENT 3 // Ambient
19 #define COL_COLOR 4 // Color
20 
21 // Ultrasonic
22 #define US_DIST_CM 5 // Dist in cm
23 #define US_DIST_MM 6 // Dist in mm
24 #define US_DIST_IN 7 // Dist in inch
25 
26 // Gyroskop
27 #define GYRO_ANG 8 // angle
28 #define GYRO_RATE 9 // rate
29 
30 // Infrared
31 #define IR_PROX 10 // Proximity
32 #define IR_SEEK 11 // Seek
33 #define IR_REMOTE 12 // Remote Control
34 
35 // NXT
36 #define NXT_IR_SEEKER 20 // Infrared Seeker
37 #define NXT_TEMP_C 21 // Temperature in C
38 #define NXT_TEMP_F 22 // Temperature in F
39 
48 int SetAllSensorMode(int name_1, int name_2, int name_3, int name_4);
49 
50 int ReadSensor(int sensorPort);
51 
52 int SetIRBeaconCH(int sensorPort, int channel);
53 
54 #endif //EV3_API_BACK_COMPATIBILITY_H
int ReadSensor(int sensorPort)
int SetAllSensorMode(int name_1, int name_2, int name_3, int name_4)
int SetIRBeaconCH(int sensorPort, int channel)
Imports all the c4ev3 supported sensors.