Rev 2052 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2052 | Rev 2189 | ||
---|---|---|---|
1 | #ifndef _COMMANDS_H |
1 | #ifndef _COMMANDS_H |
2 | #define _COMMANDS_H |
2 | #define _COMMANDS_H |
3 | 3 | ||
4 | #include <inttypes.h> |
4 | #include <inttypes.h> |
5 | /* |
5 | /* |
6 | * An enumeration over the start motors, stop motors, calibrate gyros |
6 | * An enumeration over the start motors, stop motors, calibrate gyros |
7 | * and calibreate acc. meters commands. |
7 | * and calibreate acc. meters commands. |
8 | */ |
8 | */ |
9 | #define COMMAND_NONE 0 |
9 | #define COMMAND_NONE 0 |
10 | #define COMMAND_START 6 |
10 | #define COMMAND_GYROCAL 1 |
11 | #define COMMAND_STOP 8 |
11 | #define COMMAND_ACCCAL 2 |
12 | #define COMMAND_GYROCAL 2 |
12 | #define COMMAND_GYRO_ACC_CAL 3 |
- | 13 | #define COMMAND_STOP 10 |
|
13 | #define COMMAND_ACCCAL 4 |
14 | #define COMMAND_START 11 |
14 | 15 | ||
15 | extern uint8_t compassCalState; |
16 | extern uint8_t compassCalState; |
16 | 17 | ||
17 | void commands_handleCommands(void); |
18 | void commands_handleCommands(void); |
18 | 19 | ||
19 | #ifdef USE_MK3MAG |
20 | #ifdef USE_MK3MAG |
20 | uint8_t commands_isCalibratingCompass(void); |
21 | uint8_t commands_isCalibratingCompass(void); |
21 | #endif |
22 | #endif |
22 | 23 | ||
23 | #endif |
24 | #endif |
24 | 25 |