-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdefines.h
39 lines (26 loc) · 790 Bytes
/
defines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Select either ASCII or the normal binary serial packet type
#define SERIAL_ASCII
//#define SERIAL_BINARY
//#define DEBUG_SERIAL
#define DEFAULT_BAUDRATE 115200
#define COMMAND 0x01
#define COMMAND_REPLY 0x02
#define DATA_REQUEST 0x11
#define DATA_BYTE 0x12
#define DATA_INT 0x13
#define DATA_ARRAY_REQUEST 0x21
#define DATA_ARRAY 0x22
/// Sensor Types:
#define TEMPERATURE 0x10
#define HUMIDITY 0x11
#define DISTANCE 0x30
#define MOTORSTATUS 0x50
/// Command IDs
#define STOP_MOTOR_A 0x10
#define START_MOTOR_A 0x11
#define SET_SPEED_MOTOR_A 0x12
#define BRAKE_MOTOR_A 0x13
#define STOP_MOTOR_B 0x15
#define START_MOTOR_B 0x16
#define SET_SPEED_MOTOR_B 0x17
#define BRAKE_MOTOR_B 0x18