Subversion Repositories NaviCtrl

Rev

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

Rev 530 Rev 532
Line 12... Line 12...
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   5
16
#define VERSION_MINOR   5
17
#define VERSION_PATCH   5
17
#define VERSION_PATCH   6
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               66      //   <------------------
39
#define FC_SPI_COMPATIBLE               67      //   <------------------
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 90... Line 90...
90
#define NCERR_FLAG_RC_SIGNAL_LOST                       0x00000040
90
#define NCERR_FLAG_RC_SIGNAL_LOST                       0x00000040
91
#define NCERR_FLAG_EEPROM_NOT_FOUND                     0x00000080
91
#define NCERR_FLAG_EEPROM_NOT_FOUND                     0x00000080
Line 92... Line 92...
92
 
92
 
93
//Parameter.GlobalConfig3
93
//Parameter.GlobalConfig3
94
#define CFG3_NO_SDCARD_NO_START                 0x01
94
#define CFG3_NO_SDCARD_NO_START                 0x01
95
#define CFG3_DPH_MAX_RADIUS                     0x02
95
//#define CFG3_DPH_MAX_RADIUS                   0x02
96
#define CFG3_VARIO_FAILSAFE                     0x04
96
#define CFG3_VARIO_FAILSAFE                     0x04
97
#define CFG3_MOTOR_SWITCH_MODE                  0x08
97
#define CFG3_MOTOR_SWITCH_MODE                  0x08
Line 98... Line 98...
98
#define CFG3_NO_GPSFIX_NO_START                 0x10
98
#define CFG3_NO_GPSFIX_NO_START                 0x10
Line 161... Line 161...
161
        u8 NaviGpsILimit;
161
        u8 NaviGpsILimit;
162
        u8 NaviGpsDLimit;
162
        u8 NaviGpsDLimit;
163
        u8 NaviGpsACC;
163
        u8 NaviGpsACC;
164
        u8 NaviGpsMinSat;
164
        u8 NaviGpsMinSat;
165
        u8 NaviStickThreshold;
165
        u8 NaviStickThreshold;
166
        u8 NaviOperatingRadius;
166
        u8 NaviMaxFlyingRange; // in 10m
167
        u8 NaviWindCorrection;
167
        u8 NaviWindCorrection;
168
        u8 NaviAccCompensation;
168
        u8 NaviAccCompensation;
169
        u8 NaviSpeedCompensation;
169
        u8 NaviSpeedCompensation;
170
        u8 LowVoltageWarning;
170
        u8 LowVoltageWarning;
171
        u8 NaviAngleLimitation;
171
        u8 NaviAngleLimitation;
Line 178... Line 178...
178
        u8 AutoPhotoDistance; // Distance between Photo releases (Position)
178
        u8 AutoPhotoDistance; // Distance between Photo releases (Position)
179
        u8 FromFC_LandingSpeed;
179
        u8 FromFC_LandingSpeed;
180
        u8 FromFC_LowVoltageHomeActive;
180
        u8 FromFC_LowVoltageHomeActive;
181
        u8 AutoPhotoAltitudes; // Distance between Photo releases (Altitudes)
181
        u8 AutoPhotoAltitudes; // Distance between Photo releases (Altitudes)
182
        u8 SingleWpSpeed;
182
        u8 SingleWpSpeed;
-
 
183
        u8 DescendRange; // in 10m
-
 
184
        u8 MaximumAltitude; // in m
183
} __attribute__((packed)) Param_t;
185
} __attribute__((packed)) Param_t;
Line 184... Line 186...
184
 
186
 
185
typedef struct
187
typedef struct
186
{
188
{
Line 218... Line 220...
218
 
220
 
219
extern u16 SD_SettingWaitLED;
221
extern u16 SD_SettingWaitLED;
220
extern u16 SD_PosAccuracy;
222
extern u16 SD_PosAccuracy;
221
extern u16 SD_ComingHomeSpeed;
223
extern u16 SD_ComingHomeSpeed;
222
extern u16 SD_DPH_Speed;
224
extern u16 SD_DPH_Speed;
223
extern u32 MaxRadius_in_m;
225
extern u32 MaxWP_Radius_in_m;
224
extern u8 SpeakWaypointRached;  // Speak once as soon as the Points are active
226
extern u8 SpeakWaypointRached;  // Speak once as soon as the Points are active
Line 225... Line 227...
225
extern u8 SpeakNextWaypoint;            // Speak once when reached
227
extern u8 SpeakNextWaypoint;            // Speak once when reached
226
 
228