Subversion Repositories NaviCtrl

Rev

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

Rev 549 Rev 573
Line 11... Line 11...
11
//-----------------------
11
//-----------------------
12
//#define DEBUG 0
12
//#define DEBUG 0
13
//-----------------------
13
//-----------------------
Line 14... Line 14...
14
 
14
 
15
#define VERSION_MAJOR   2
15
#define VERSION_MAJOR   2
16
#define VERSION_MINOR   6
16
#define VERSION_MINOR   7
17
#define VERSION_PATCH   8
17
#define VERSION_PATCH   0
18
// 0 = A
18
// 0 = A
19
// 1 = B
19
// 1 = B
20
// 2 = C
20
// 2 = C
21
// 3 = D
21
// 3 = D
Line 34... Line 34...
34
// 16 = Q
34
// 16 = Q
35
// 17 = R
35
// 17 = R
36
// 18 = S
36
// 18 = S
Line 37... Line 37...
37
 
37
 
38
#ifndef FOLLOW_ME
38
#ifndef FOLLOW_ME
39
#define FC_SPI_COMPATIBLE               69      //   <------------------
39
#define FC_SPI_COMPATIBLE               71      //   <------------------
40
#else
40
#else
41
#define FC_SPI_COMPATIBLE               0xFF
41
#define FC_SPI_COMPATIBLE               0xFF
Line 42... Line 42...
42
#endif
42
#endif
Line 59... Line 59...
59
#define FC_STATUS2_RC_FAILSAVE_ACTIVE       0x04
59
#define FC_STATUS2_RC_FAILSAVE_ACTIVE       0x04
60
#define FC_STATUS2_OUT1_ACTIVE                  0x08
60
#define FC_STATUS2_OUT1_ACTIVE                  0x08
61
#define FC_STATUS2_OUT2_ACTIVE                  0x10
61
#define FC_STATUS2_OUT2_ACTIVE                  0x10
62
#define FC_STATUS2_WAIT_FOR_TAKEOFF             0x20   // Motor Running, but still on the ground
62
#define FC_STATUS2_WAIT_FOR_TAKEOFF             0x20   // Motor Running, but still on the ground
Line -... Line 63...
-
 
63
 
-
 
64
// FC.StatusFlags3 
-
 
65
#define FC_STATUS3_REDUNDANCE               0x01
-
 
66
#define FC_STATUS3_BOAT                         0x02
63
 
67
 
64
// FC ERRORS FLAGS
68
// FC ERRORS FLAGS
65
#define FC_ERROR0_GYRO_NICK     0x01
69
#define FC_ERROR0_GYRO_NICK     0x01
66
#define FC_ERROR0_GYRO_ROLL     0x02
70
#define FC_ERROR0_GYRO_ROLL     0x02
67
#define FC_ERROR0_GYRO_YAW              0x04
71
#define FC_ERROR0_GYRO_YAW              0x04
Line 180... Line 184...
180
        u8 FromFC_LowVoltageHomeActive;
184
        u8 FromFC_LowVoltageHomeActive;
181
        u8 AutoPhotoAltitudes; // Distance between Photo releases (Altitudes)
185
        u8 AutoPhotoAltitudes; // Distance between Photo releases (Altitudes)
182
        u8 SingleWpSpeed;
186
        u8 SingleWpSpeed;
183
        u8 DescendRange; // in 10m
187
        u8 DescendRange; // in 10m
184
        u8 MaximumAltitude; // in m
188
        u8 MaximumAltitude; // in m
-
 
189
        u8 Driftkomp;
185
} __attribute__((packed)) Param_t;
190
} __attribute__((packed)) Param_t;
Line 186... Line 191...
186
 
191
 
187
typedef struct
192
typedef struct
188
{
193
{
Line 200... Line 205...
200
        u8 Error[5];
205
        u8 Error[5];
201
        u8 StatusFlags2;
206
        u8 StatusFlags2;
202
        u8 FromFC_SpeakHoTT;
207
        u8 FromFC_SpeakHoTT;
203
        s16 FromFC_CompassOffset;
208
        s16 FromFC_CompassOffset;
204
        u8 FromFC_DisableDeclination;
209
        u8 FromFC_DisableDeclination;
205
        u8 RedundanceBlOperation;
210
        u8 StatusFlags3;
-
 
211
        s16 Altimeter;
-
 
212
        u8 RealStatusFlags; // this is a copy of the status flags -> but not effected by the simulation
-
 
213
        u16 AdNeutralNick;
-
 
214
        u16 AdNeutralRoll;
-
 
215
        u16 AdNeutralYaw;
206
} __attribute__((packed)) FC_t; // from FC
216
} __attribute__((packed)) FC_t; // from FC
Line 207... Line -...
207
 
-
 
208
 
217
 
209
extern Param_t Parameter;
218
extern Param_t Parameter;
210
extern volatile FC_t FC;
219
extern volatile FC_t FC;
211
extern s8 ErrorMSG[25];
220
extern s8 ErrorMSG[25];
212
extern u8 ErrorCode;
221
extern u8 ErrorCode;