Subversion Repositories FlightCtrl

Rev

Rev 2048 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2048 Rev 2052
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_START   6
11
#define COMMAND_STOP    8
11
#define COMMAND_STOP    8
12
#define COMMAND_GYROCAL 2
12
#define COMMAND_GYROCAL 2
13
#define COMMAND_ACCCAL  4
13
#define COMMAND_ACCCAL  4
14
 
14
 
15
extern uint8_t compassCalState;
15
extern uint8_t compassCalState;
16
 
16
 
17
void commands_handleCommands(void);
17
void commands_handleCommands(void);
-
 
18
 
-
 
19
#ifdef USE_MK3MAG
18
uint8_t commands_isCalibratingCompass(void);
20
uint8_t commands_isCalibratingCompass(void);
-
 
21
#endif
19
 
22
 
20
#endif
23
#endif
21
 
24