Subversion Repositories NaviCtrl

Rev

Rev 138 | Rev 148 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 138 Rev 146
Line 2... Line 2...
2
#define _MAIN_H
2
#define _MAIN_H
Line 3... Line 3...
3
 
3
 
4
 
4
 
5
#define VERSION_MAJOR   0
5
#define VERSION_MAJOR   0
Line 6... Line 6...
6
#define VERSION_MINOR   16
6
#define VERSION_MINOR   16
7
#define VERSION_PATCH   3
7
#define VERSION_PATCH   4
Line 8... Line 8...
8
 
8
 
9
#define VERSION_SERIAL_MAJOR    10
9
#define VERSION_SERIAL_MAJOR    10
Line 10... Line 10...
10
#define VERSION_SERIAL_MINOR    1
10
#define VERSION_SERIAL_MINOR    1
11
 
11
 
12
#define FC_SPI_COMPATIBLE       8
12
#define FC_SPI_COMPATIBLE       8
13
#define MK3MAG_I2C_COMPATIBLE   3
13
#define MK3MAG_I2C_COMPATIBLE   3
14
 
14
 
15
 
15
// FC FLAGS
16
#define MKFLAG_MOTOR_RUN                                0x01
16
#define MKFLAG_MOTOR_RUN                                0x01
17
#define MKFLAG_FLY                                      0x02
17
#define MKFLAG_FLY                                      0x02
18
#define MKFLAG_CALIBRATE                                0x04
18
#define MKFLAG_CALIBRATE                                0x04
Line -... Line 19...
-
 
19
#define MKFLAG_START                                    0x08
-
 
20
#define MKFLAG_EMERGENCY_LANDING        0x10
-
 
21
#define MKFLAG_RESERVE1                         0x20
-
 
22
#define MKFLAG_RESERVE2                         0x40
-
 
23
#define MKFLAG_RESERVE3                         0x80
19
#define MKFLAG_START                                    0x08
24
 
-
 
25
// NC Errors
20
#define MKFLAG_EMERGENCY_LANDING        0x10
26
#define NCERR_FLAG_FC_COMPATIBLE                        0x00000001
Line 21... Line -...
21
#define MKFLAG_RESERVE1                         0x20
-
 
22
#define MKFLAG_RESERVE2                         0x40
27
#define NCERR_FLAG_MK3MAG_COMPATIBLE            0x00000002
23
#define MKFLAG_RESERVE3                         0x80
28
#define NCERR_FLAG_FC_COMMUNICATION                     0x00000004
24
 
29
#define NCERR_FLAG_MK3MAG_COMMUNICATION         0x00000008
25
// sends data on uart0 (without MK-OSD the MKGPS is connect there)
30
#define NCERR_FLAG_MKGPS_COMMUNICATION          0x00000010
26
//#define SEND_MKOSD_DATA
31
#define NCERR_FLAG_BAD_COMPASS_HEADING          0x00000020
Line 81... Line 86...
81
 
86
 
82
 
87
 
83
extern Param_t Parameter;
88
extern Param_t Parameter;
84
extern volatile FC_t FC;
89
extern volatile FC_t FC;
85
extern s8 ErrorMSG[25];
90
extern s8 ErrorMSG[25];
86
extern u32 ErrorCode;
91
extern u32 ErrorCode;