Subversion Repositories NaviCtrl

Rev

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

Rev 319 Rev 320
Line 40... Line 40...
40
#define FC_SPI_COMPATIBLE               0xFF
40
#define FC_SPI_COMPATIBLE               0xFF
41
#endif
41
#endif
Line 42... Line 42...
42
 
42
 
Line 43... Line 43...
43
#define MK3MAG_I2C_COMPATIBLE   3
43
#define MK3MAG_I2C_COMPATIBLE   3
44
 
44
 
45
// FC STATUS FLAGS
45
// FC.StatusFlags
46
#define FC_STATUS_MOTOR_RUN                             0x01
46
#define FC_STATUS_MOTOR_RUN                             0x01
47
#define FC_STATUS_FLY                                   0x02
47
#define FC_STATUS_FLY                                   0x02
48
#define FC_STATUS_CALIBRATE                             0x04
48
#define FC_STATUS_CALIBRATE                             0x04
49
#define FC_STATUS_START                                 0x08
49
#define FC_STATUS_START                                 0x08
50
#define FC_STATUS_EMERGENCY_LANDING             0x10
50
#define FC_STATUS_EMERGENCY_LANDING             0x10
51
#define FC_STATUS_LOWBAT                                0x20
51
#define FC_STATUS_LOWBAT                                0x20
Line 52... Line 52...
52
#define FC_STATUS_VARIO_TRIM_UP                 0x40
52
#define FC_STATUS_VARIO_TRIM_UP                 0x40
53
#define FC_STATUS_VARIO_TRIM_DOWN               0x80
53
#define FC_STATUS_VARIO_TRIM_DOWN               0x80
54
 
54
 
Line 55... Line 55...
55
// FC STATUS FLAGS2
55
// FC.StatusFlags2
Line 84... Line 84...
84
#define NCERR_FLAG_MKGPS_COMMUNICATION          0x00000010
84
#define NCERR_FLAG_MKGPS_COMMUNICATION          0x00000010
85
#define NCERR_FLAG_BAD_COMPASS_HEADING          0x00000020
85
#define NCERR_FLAG_BAD_COMPASS_HEADING          0x00000020
86
#define NCERR_FLAG_RC_SIGNAL_LOST                       0x00000040
86
#define NCERR_FLAG_RC_SIGNAL_LOST                       0x00000040
87
#define NCERR_FLAG_EEPROM_NOT_FOUND                     0x00000080
87
#define NCERR_FLAG_EEPROM_NOT_FOUND                     0x00000080
Line -... Line 88...
-
 
88
 
-
 
89
// Parameter.GlobalConfig
-
 
90
#define FC_CFG_HOEHENREGELUNG       0x01
-
 
91
#define FC_CFG_HOEHEN_SCHALTER      0x02
-
 
92
#define FC_CFG_HEADING_HOLD         0x04
-
 
93
#define FC_CFG_KOMPASS_AKTIV        0x08
-
 
94
#define FC_CFG_KOMPASS_FIX          0x10
-
 
95
#define FC_CFG_GPS_AKTIV            0x20
-
 
96
#define FC_CFG_ACHSENKOPPLUNG_AKTIV 0x40
-
 
97
#define FC_CFG_DREHRATEN_BEGRENZER  0x80
-
 
98
 
-
 
99
//Parameter.ExtraConfig
-
 
100
#define CFG2_HEIGHT_LIMIT        0x01
-
 
101
#define CFG2_VARIO_BEEP          0x02
-
 
102
#define CFG_SENSITIVE_RC         0x04
-
 
103
#define CFG_3_3V_REFERENCE       0x08
-
 
104
#define CFG_NO_RCOFF_BEEPING     0x10
-
 
105
#define CFG_GPS_AID                  0x20
-
 
106
#define CFG_LEARNABLE_CAREFREE   0x40
Line 88... Line 107...
88
 
107
 
89
 
108
 
90
#define LIMIT_MIN(value, min) {if(value <= min) value = min;}
109
#define LIMIT_MIN(value, min) {if(value <= min) value = min;}
Line 124... Line 143...
124
        u8 NaviWindCorrection;
143
        u8 NaviWindCorrection;
125
        u8 NaviSpeedCompensation;
144
        u8 NaviSpeedCompensation;
126
        u8 LowVoltageWarning;
145
        u8 LowVoltageWarning;
127
        u8 NaviAngleLimitation;
146
        u8 NaviAngleLimitation;
128
        u8 NaviPH_LoginTime;
147
        u8 NaviPH_LoginTime;
-
 
148
        u8 OrientationAngle;
-
 
149
        u8 GlobalConfig;
-
 
150
        u8 ExtraConfig;
129
} __attribute__((packed)) Param_t;
151
} __attribute__((packed)) Param_t;
Line 130... Line 152...
130
 
152
 
131
typedef struct
153
typedef struct
132
{
154
{