Rev 504 | Rev 513 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 504 | Rev 509 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | u8 ErrorCode = 0; |
91 | u8 ErrorCode = 0; |
92 | u16 BeepTime; |
92 | u16 BeepTime; |
93 | u8 NCFlags = 0; |
93 | u8 NCFlags = 0; |
94 | s16 GeoMagDec = 0; // local magnetic declination in 0.1 deg |
94 | s16 GeoMagDec = 0; // local magnetic declination in 0.1 deg |
95 | u8 ErrorGpsFixLost = 0; |
95 | u8 ErrorGpsFixLost = 0; |
96 | u8 FromFC_LoadWP_List = 0; |
96 | u8 FromFC_LoadWP_List = 0, FromFC_Load_SingePoint = 0, FromFC_Store_SingePoint = 0; |
97 | u8 ToFC_MaxWpListIndex = 3; |
97 | u8 ToFC_MaxWpListIndex = 3; |
98 | u8 ClearFCStatusFlags = 0; |
98 | u8 ClearFCStatusFlags = 0; |
99 | u8 StopNavigation = 0; |
99 | u8 StopNavigation = 0; |
100 | volatile u32 PollingTimeout = 10000; |
100 | volatile u32 PollingTimeout = 10000; |
101 | Param_t Parameter; |
101 | Param_t Parameter; |
Line 617... | Line 617... | ||
617 | } |
617 | } |
618 | } |
618 | } |
619 | FromFC_LoadWP_List = 0; |
619 | FromFC_LoadWP_List = 0; |
620 | } |
620 | } |
621 | // ++++++++++++++++++++++++++++++++++++++++++++++ |
621 | // ++++++++++++++++++++++++++++++++++++++++++++++ |
- | 622 | if(FromFC_Store_SingePoint) |
|
- | 623 | { |
|
- | 624 | FromFC_Store_SingePoint = 0; |
|
- | 625 | } |
|
- | 626 | // ++++++++++++++++++++++++++++++++++++++++++++++ |
|
- | 627 | if(FromFC_Load_SingePoint) |
|
622 | 628 | { |
|
- | 629 | FromFC_Load_SingePoint = 0; |
|
- | 630 | } |
|
- | 631 | // ++++++++++++++++++++++++++++++++++++++++++++++ |
|
623 | // ---------------- Logging --------------------------------------- |
632 | // ---------------- Logging --------------------------------------- |
624 | if(SD_WatchDog) |
633 | if(SD_WatchDog) |
625 | { |
634 | { |
626 | SD_WatchDog = 30000; |
635 | SD_WatchDog = 30000; |
627 | if(SDCardInfo.Valid == 1) Logging_Update(); // could be block some time for at max. 2 seconds, therefore move time critical part of the mainloop into the ISR of timer 1 |
636 | if(SDCardInfo.Valid == 1) Logging_Update(); // could be block some time for at max. 2 seconds, therefore move time critical part of the mainloop into the ISR of timer 1 |