Subversion Repositories NaviCtrl

Rev

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

Rev 73 Rev 78
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   14
6
#define VERSION_MINOR   14
7
#define VERSION_PATCH   2
7
#define VERSION_PATCH   4
Line 8... Line 8...
8
 
8
 
9
#define VERSION_SERIAL_MAJOR    10
9
#define VERSION_SERIAL_MAJOR    10
Line -... Line 10...
-
 
10
#define VERSION_SERIAL_MINOR    0
-
 
11
 
-
 
12
#define FC_SPI_COMPATIBLE       5
-
 
13
#define MK3MAG_I2C_COMPATIBLE   2
-
 
14
 
-
 
15
 
-
 
16
#define MKFLAG_MOTOR_RUN                                0x01
-
 
17
#define MKFLAG_FLY                                      0x02
-
 
18
#define MKFLAG_CALIBRATE                                0x04
-
 
19
#define MKFLAG_START                                    0x08
10
#define VERSION_SERIAL_MINOR    0
20
#define MKFLAG_EMERGENCY_LANDING        0x10
11
 
21
#define MKFLAG_RESERVE1                         0x20
Line 12... Line 22...
12
#define FC_SPI_COMPATIBLE       5
22
#define MKFLAG_RESERVE2                         0x40
13
#define MK3MAG_I2C_COMPATIBLE   2
23
#define MKFLAG_RESERVE3                         0x80
Line 61... Line 71...
61
        u8 Poti3;
71
        u8 Poti3;
62
        u8 Poti4;
72
        u8 Poti4;
63
        u8 RC_Quality;
73
        u8 RC_Quality;
64
        u8 UBat;
74
        u8 UBat;
65
        // MK_Flags
75
        // MK_Flags
66
        #define MKFLAG_MOTOR_RUN                                0x01
-
 
67
        #define MKFLAG_FLY                                      0x02
-
 
68
        #define MKFLAG_CALIBRATE                                0x04
-
 
69
        #define MKFLAG_START                                    0x08
-
 
70
        #define MKFLAG_EMERGENCY_LANDING        0x10
-
 
71
        #define MKFLAG_RESERVE1                         0x20
-
 
72
        #define MKFLAG_RESERVE2                         0x40
-
 
73
        #define MKFLAG_RESERVE3                         0x80
-
 
74
        u8 MKFlags;
76
        u8 MKFlags;
75
} __attribute__((packed)) FC_t;
77
} __attribute__((packed)) FC_t;
Line 76... Line 78...
76
 
78
 
77
 
79
 
78
extern Param_t Parameter;
80
extern Param_t Parameter;
79
extern FC_t FC;
81
extern volatile FC_t FC;
80
extern s8 ErrorMSG[25];
82
extern s8 ErrorMSG[25];
81
extern u32 ErrorCode;
83
extern u32 ErrorCode;