Rev 24 | Rev 39 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 24 | Rev 27 | ||
---|---|---|---|
1 | 1 | ||
2 | #include "91x_conf.h" |
2 | #include "91x_conf.h" |
3 | #include "91x_lib.h" |
3 | #include "91x_lib.h" |
4 | #include "91x_wiu.h" |
4 | #include "91x_wiu.h" |
5 | #include "uart.h" |
5 | #include "uart.h" |
6 | #include "ramfunc.h" |
6 | #include "ramfunc.h" |
7 | #include "menu.h" |
7 | #include "menu.h" |
8 | #include <stdio.h> |
8 | #include <stdio.h> |
9 | #include <stdlib.h> |
9 | #include <stdlib.h> |
10 | #include <math.h> |
10 | #include <math.h> |
11 | #include "printf_P.h" |
11 | #include "printf_P.h" |
12 | #include "timer.h" |
12 | #include "timer.h" |
13 | #include "spi_slave.h" |
13 | #include "spi_slave.h" |
14 | #include "i2c.h" |
14 | #include "i2c.h" |
15 | #include "GPS.h" |
15 | #include "GPS.h" |
16 | #include "GPSUart.h" |
16 | #include "GPSUart.h" |
17 | #include "sdc.h" |
17 | #include "sdc.h" |
18 | #include "ssc.h" |
18 | #include "ssc.h" |
19 | #include "fat16.h" |
19 | #include "fat16.h" |
20 | #include "usb.h" |
20 | #include "usb.h" |
21 | #include "string.h" |
21 | #include "string.h" |
22 | #include "settings.h" |
22 | #include "settings.h" |
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | //#include "hw_config.h" |
27 | //#include "hw_config.h" |
28 | 28 | ||
29 | #define VERSION_HAUPTVERSION 0 |
29 | #define VERSION_HAUPTVERSION 0 |
30 | #define VERSION_NEBENVERSION 1 |
30 | #define VERSION_NEBENVERSION 1 |
31 | #define VERSION_KOMPATIBEL 7 |
31 | #define VERSION_KOMPATIBEL 7 |
32 | 32 | ||
33 | #define GPIO_ToggleBit(GPIO, Pin) if (GPIO_ReadBit(GPIO, Pin)) GPIO_WriteBit(GPIO, Pin, Bit_RESET); else GPIO_WriteBit(GPIO, Pin, Bit_SET); |
33 | #define GPIO_ToggleBit(GPIO, Pin) if (GPIO_ReadBit(GPIO, Pin)) GPIO_WriteBit(GPIO, Pin, Bit_RESET); else GPIO_WriteBit(GPIO, Pin, Bit_SET); |
34 | 34 | ||
35 | 35 | ||
36 | extern u32 TimerCompassUpdate; |
36 | extern u32 TimerCompassUpdate; |
37 | extern u32 TimerI2CReadDelay; |
37 | extern u32 TimerI2CReadDelay; |
38 | extern u8 BeepTime; |
38 | extern u8 BeepTime; |
39 | void InitInterrupt(void); |
39 | void InitInterrupt(void); |
- | 40 | ||
40 | 41 | extern u8 text[20]; |
|
41 | extern u8 Parameter_UserParam1; |
42 | extern u8 Parameter_UserParam1; |
42 | extern u8 Parameter_UserParam2; |
43 | extern u8 Parameter_UserParam2; |
43 | extern u8 Parameter_UserParam3; |
44 | extern u8 Parameter_UserParam3; |
44 | extern u8 Parameter_UserParam4; |
45 | extern u8 Parameter_UserParam4; |
45 | extern u8 Parameter_UserParam5; |
46 | extern u8 Parameter_UserParam5; |
46 | extern u8 Parameter_UserParam6; |
47 | extern u8 Parameter_UserParam6; |
47 | extern u8 Parameter_UserParam7; |
48 | extern u8 Parameter_UserParam7; |
48 | extern u8 Parameter_UserParam8; |
49 | extern u8 Parameter_UserParam8; |
49 | extern s32 FC_StickNick; |
50 | extern s32 FC_StickNick; |
50 | extern s32 FC_StickRoll; |
51 | extern s32 FC_StickRoll; |
51 | extern s32 FC_StickGier; |
52 | extern s32 FC_StickGier; |
52 | extern s32 FC_StickGas; |
53 | extern s32 FC_StickGas; |
53 | extern s32 FC_Poti1; |
54 | extern s32 FC_Poti1; |
54 | extern s32 FC_Poti2; |
55 | extern s32 FC_Poti2; |
55 | extern s32 FC_Poti3; |
56 | extern s32 FC_Poti3; |
56 | extern s32 FC_Poti4; |
57 | extern s32 FC_Poti4; |
57 | extern s32 SenderOkay; |
58 | extern s32 SenderOkay; |
- | 59 | extern s32 UBat; |
|
- | 60 | extern s32 UndervoltageLevel; |
|
- | 61 | extern s32 ActiveSetting; |
|
- | 62 | //++++++++++++++++++++++++++++++++++++++++++++++++++ |
|
- | 63 | extern s32 Parameter_NaviGpsModeControl; |
|
- | 64 | extern s32 Parameter_NaviGpsGain; |
|
- | 65 | extern s32 Parameter_NaviGpsP; |
|
- | 66 | extern s32 Parameter_NaviGpsI; |
|
- | 67 | extern s32 Parameter_NaviGpsD; |
|
- | 68 | extern s32 Parameter_NaviGpsACC; |
|
- | 69 | extern s32 Parameter_NaviGpsMinSat; |
|
- | 70 | extern s32 Parameter_NaviStickThreshold; |
|
- | 71 | extern s32 Parameter_RadiusAlert; |
|
- | 72 | //++++++++++++++++++++++++++++++++++++++++++++++++++ |
|
- | 73 | #define FLAG_MOTOR_RUN 1 |
|
- | 74 | #define FLAG_FLY 2 |
|
- | 75 | #define FLAG_CALIBRATE 4 |
|
- | 76 | #define FLAG_START 8 |
|
- | 77 | extern u32 MikroKopterFlags; |
|
58 | extern u8 text[20]; |
78 | extern u32 ClearFlags; |
- | 79 | //++++++++++++++++++++++++++++++++++++++++++++++++++ |
|
- | 80 | ||
59 | 81 |