Rev 193 | Rev 206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 199 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | 11 | ||
12 | #define FC_SPI_COMPATIBLE 11 |
12 | #define FC_SPI_COMPATIBLE 11 |
Line 13... | Line 13... | ||
13 | #define MK3MAG_I2C_COMPATIBLE 3 |
13 | #define MK3MAG_I2C_COMPATIBLE 3 |
14 | 14 | ||
15 | // FC FLAGS |
15 | // FC FLAGS |
16 | #define MKFLAG_MOTOR_RUN 0x01 |
16 | #define FCFLAG_MOTOR_RUN 0x01 |
17 | #define MKFLAG_FLY 0x02 |
17 | #define FCFLAG_FLY 0x02 |
18 | #define MKFLAG_CALIBRATE 0x04 |
18 | #define FCFLAG_CALIBRATE 0x04 |
19 | #define MKFLAG_START 0x08 |
19 | #define FCFLAG_START 0x08 |
20 | #define MKFLAG_EMERGENCY_LANDING 0x10 |
20 | #define FCFLAG_EMERGENCY_LANDING 0x10 |
21 | #define MKFLAG_RESERVE1 0x20 |
21 | #define FCFLAG_LOWBAT 0x20 |
Line 22... | Line 22... | ||
22 | #define MKFLAG_RESERVE2 0x40 |
22 | #define FCFLAG_SPI_RX_ERR 0x40 |
23 | #define MKFLAG_RESERVE3 0x80 |
23 | #define FCFLAG_RESERVE1 0x80 |
24 | 24 | ||
25 | // NC Errors |
25 | // NC Errors |
Line 37... | Line 37... | ||
37 | #define LIMIT_MIN_MAX(value, min, max) {if(value <= min) value = min; else if(value >= max) value = max;} |
37 | #define LIMIT_MIN_MAX(value, min, max) {if(value <= min) value = min; else if(value >= max) value = max;} |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | 39 | ||
40 | extern u16 BeepTime; |
40 | extern u16 BeepTime; |
41 | extern u8 NCFlags; |
41 | extern u8 NCFlags; |
42 | extern u8 ClearMKFlags; |
42 | extern u8 ClearFCFlags; |
Line 43... | Line 43... | ||
43 | void Interrupt_Init(void); |
43 | void Interrupt_Init(void); |
Line 82... | Line 82... | ||
82 | s8 StickGas; |
82 | s8 StickGas; |
83 | u8 Poti[8]; |
83 | u8 Poti[8]; |
84 | u8 RC_Quality; |
84 | u8 RC_Quality; |
85 | u8 RC_RSSI; |
85 | u8 RC_RSSI; |
86 | u8 UBat; |
86 | u8 UBat; |
87 | u8 MKFlags; |
87 | u8 Flags; |
88 | } __attribute__((packed)) FC_t; |
88 | } __attribute__((packed)) FC_t; |
Line 89... | Line 89... | ||
89 | 89 | ||
90 | 90 |