Rev 749 | Rev 766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 749 | Rev 764 | ||
---|---|---|---|
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 14 |
16 | #define VERSION_MINOR 15 |
17 | #define VERSION_PATCH 3 |
17 | #define VERSION_PATCH 2 |
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 35... | Line 35... | ||
35 | // 17 = R |
35 | // 17 = R |
36 | // 18 = S |
36 | // 18 = S |
Line 37... | Line 37... | ||
37 | 37 | ||
38 | #define CAN_SLAVE_COMPATIBLE 1 |
38 | #define CAN_SLAVE_COMPATIBLE 1 |
39 | #ifndef FOLLOW_ME |
39 | #ifndef FOLLOW_ME |
40 | #define FC_SPI_COMPATIBLE 81 // <------------------ |
40 | #define FC_SPI_COMPATIBLE 83 // <------------------ |
41 | #else |
41 | #else |
42 | #define FC_SPI_COMPATIBLE 0xFF |
42 | #define FC_SPI_COMPATIBLE 0xFF |
Line 43... | Line 43... | ||
43 | #endif |
43 | #endif |
Line 84... | Line 84... | ||
84 | #define NC_FLAG_NOSERIALLINK 0x10 |
84 | #define NC_FLAG_NOSERIALLINK 0x10 |
85 | #define NC_FLAG_TARGET_REACHED 0x20 |
85 | #define NC_FLAG_TARGET_REACHED 0x20 |
86 | #define NC_FLAG_MANUAL_CONTROL 0x40 |
86 | #define NC_FLAG_MANUAL_CONTROL 0x40 |
87 | #define NC_FLAG_GPS_OK 0x80 |
87 | #define NC_FLAG_GPS_OK 0x80 |
Line -... | Line 88... | ||
- | 88 | ||
- | 89 | //IO1_Function |
|
- | 90 | #define IO1FUNC_PARACHUTE 9 |
|
Line 88... | Line 91... | ||
88 | 91 | #define IO1FUNC_ERROR_PARACHUTE 255 |
|
89 | 92 | ||
90 | // NC calculates |
93 | // NC calculates |
Line 132... | Line 135... | ||
132 | #define NC_TO_FC_FAILSAFE_LANDING 0x08 // activates Servos |
135 | #define NC_TO_FC_FAILSAFE_LANDING 0x08 // activates Servos |
133 | #define NC_TO_FC_SIMULATION_ACTIVE 0x10 // don't start motors if simulation ist active |
136 | #define NC_TO_FC_SIMULATION_ACTIVE 0x10 // don't start motors if simulation ist active |
Line 134... | Line 137... | ||
134 | 137 | ||
135 | //Parameter.GlobalConfig3 |
138 | //Parameter.GlobalConfig3 |
136 | #define CFG3_NO_SDCARD_NO_START 0x01 |
139 | #define CFG3_NO_SDCARD_NO_START 0x01 |
137 | //#define CFG3_DPH_MAX_RADIUS 0x02 |
140 | #define CFG3_RISE_FIRST_WAYPOINT 0x02 |
138 | #define CFG3_VARIO_FAILSAFE 0x04 |
141 | #define CFG3_VARIO_FAILSAFE 0x04 |
139 | #define CFG3_MOTOR_SWITCH_MODE 0x08 |
142 | #define CFG3_MOTOR_SWITCH_MODE 0x08 |
- | 143 | #define CFG3_NO_GPSFIX_NO_START 0x10 |
|
- | 144 | #define CFG3_USE_NC_FOR_OUT1 0x20 |
|
- | 145 | #define CFG3_SPEAK_ALL 0x40 |
|
Line 140... | Line 146... | ||
140 | #define CFG3_NO_GPSFIX_NO_START 0x10 |
146 | #define CFG3_SERVO_NICK_COMP_OFF 0x80 |
141 | 147 | ||
142 | // Parameter.GlobalConfig |
148 | // Parameter.GlobalConfig |
143 | #define FC_CFG_HOEHENREGELUNG 0x01 |
149 | #define FC_CFG_HOEHENREGELUNG 0x01 |
Line 322... | Line 328... | ||
322 | extern u8 NewWaypointsReceived; // when 1: activates the Waypoint list as soon as CH is started |
328 | extern u8 NewWaypointsReceived; // when 1: activates the Waypoint list as soon as CH is started |
323 | extern s16 GyroCompassCorrected; |
329 | extern s16 GyroCompassCorrected; |
324 | extern s16 CompassSetpointCorrected; // The compass setpoint that the FC tries to keep - corrected with the magnetic declination |
330 | extern s16 CompassSetpointCorrected; // The compass setpoint that the FC tries to keep - corrected with the magnetic declination |
325 | extern s16 CompassSetpoint; |
331 | extern s16 CompassSetpoint; |
326 | extern u8 AmountOfMotors; |
332 | extern u8 AmountOfMotors; |
327 | extern s16 SimulatedDirection; // simulated compass direction |
333 | extern s16 SimulatedDirection; // simulated compass direction |
328 | - | ||
- | 334 | extern u16 ToFC_Parachute_Off; // forced Switch off via IO1 |
|
- | 335 | extern u8 IO1_Function; |
|
- | 336 | #define OEM_NAME_LENGHT 16 |
|
- | 337 | extern u8 OEM_String[OEM_NAME_LENGHT+1]; |
|
Line 329... | Line 338... | ||
329 | 338 | ||
330 | #define CHECK_ONLY 0 |
339 | #define CHECK_ONLY 0 |
331 | #define GET_LICENSE 1 |
340 | #define GET_LICENSE 1 |
332 | #define COPY_SD_TO_EE 2 |
341 | #define COPY_SD_TO_EE 2 |
Line 341... | Line 350... | ||
341 | #define PIN6_5 (GPIO6->DR[0x3FC] & 0x20) |
350 | #define PIN6_5 (GPIO6->DR[0x3FC] & 0x20) |
Line 342... | Line 351... | ||
342 | 351 | ||
343 | #define TRIGGER_PP_INTERN PIN6_0 |
352 | #define TRIGGER_PP_INTERN PIN6_0 |
344 | #define TRIGGER_PP_EXTERN PIN6_3 |
353 | #define TRIGGER_PP_EXTERN PIN6_3 |
- | 354 | #define BLITZ_CONNECTED PIN6_4 |
|
Line 345... | Line 355... | ||
345 | #define BLITZ_CONNECTED PIN6_4 |
355 | #define IO1_INPUT PIN6_5 |