Rev 2176 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2176 | Rev 2177 | ||
---|---|---|---|
Line 79... | Line 79... | ||
79 | // WinkelOut.CalcState = 0; // in Uart.c |
79 | // WinkelOut.CalcState = 0; // in Uart.c |
80 | beeptime = 1000; |
80 | beeptime = 1000; |
81 | } |
81 | } |
82 | else Piep(WinkelOut.CalcState,150); |
82 | else Piep(WinkelOut.CalcState,150); |
83 | } |
83 | } |
84 | DebugOut.Analog[19] = WinkelOut.CalcState; |
84 | //DebugOut.Analog[19] = WinkelOut.CalcState; // MartinR wird in fc.c verwendet |
85 | } |
85 | } |
Line 86... | Line 86... | ||
86 | 86 | ||
87 | 87 | ||
Line 106... | Line 106... | ||
106 | Piep(cells, 200); |
106 | Piep(cells, 200); |
107 | printf(" %d Cells ", cells); |
107 | printf(" %d Cells ", cells); |
108 | } |
108 | } |
109 | } |
109 | } |
110 | else BattLowVoltageWarning = EE_Parameter.UnterspannungsWarnung; |
110 | else BattLowVoltageWarning = EE_Parameter.UnterspannungsWarnung; |
111 | if(print) printf(" Low warning: %d.%d",BattLowVoltageWarning/10,BattLowVoltageWarning%10); |
111 | //if(print) printf(" Low warning: %d.%d",BattLowVoltageWarning/10,BattLowVoltageWarning%10); |
- | 112 | if(print) printf("Low Batt level: %d.%d",BattLowVoltageWarning/10,BattLowVoltageWarning%10); /// Martinw; removed memorysaving |
|
112 | } |
113 | } |
Line 113... | Line 114... | ||
113 | 114 | ||
114 | //############################################################################ |
115 | //############################################################################ |
115 | //Hauptprogramm |
116 | //Hauptprogramm |
Line 211... | Line 212... | ||
211 | 212 | ||
Line 212... | Line 213... | ||
212 | if(RequiredMotors < FoundMotors) VersionInfo.HardwareError[1] |= FC_ERROR1_MIXER; |
213 | if(RequiredMotors < FoundMotors) VersionInfo.HardwareError[1] |= FC_ERROR1_MIXER; |
213 | 214 | ||
214 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
215 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
- | 216 | { |
|
215 | { |
217 | //printf("\n\rCalibrating pressure sensor.."); |
216 | printf("\n\rCalibrating pressure sensor.."); |
218 | printf("\n\rCal. pressure sensor");/// Martinw; removed memorysaving |
217 | timer = SetDelay(1000); |
219 | timer = SetDelay(1000); |
218 | SucheLuftruckOffset(); |
220 | SucheLuftruckOffset(); |
219 | while (!CheckDelay(timer)); |
221 | while (!CheckDelay(timer)); |
Line 236... | Line 238... | ||
236 | FlugMinuten = 0; |
238 | FlugMinuten = 0; |
237 | FlugMinutenGesamt = 0; |
239 | FlugMinutenGesamt = 0; |
238 | } |
240 | } |
239 | printf("\n\rFlight-time %u min Total:%u min", FlugMinuten, FlugMinutenGesamt); |
241 | printf("\n\rFlight-time %u min Total:%u min", FlugMinuten, FlugMinutenGesamt); |
Line -... | Line 242... | ||
- | 242 | ||
- | 243 | #ifdef WITH_MKTOOL_Display // MartinW; for no MKT Display main.h |
|
240 | 244 | #warning : "### with MKTool Display ###" |
|
- | 245 | LcdClear(); |
|
- | 246 | #endif |
|
241 | LcdClear(); |
247 | |
242 | I2CTimeout = 5000; |
248 | I2CTimeout = 5000; |
243 | WinkelOut.Orientation = 1; |
249 | WinkelOut.Orientation = 1; |
244 | LipoDetection(1); |
250 | LipoDetection(1); |
245 | LIBFC_ReceiverInit(EE_Parameter.Receiver); |
251 | LIBFC_ReceiverInit(EE_Parameter.Receiver); |
Line 250... | Line 256... | ||
250 | 256 | ||
251 | Debug(ANSI_CLEAR "FC-Start!\n\rFlugzeit: %d min", FlugMinutenGesamt); // Note: this won't waste flash memory, if #DEBUG is not active |
257 | Debug(ANSI_CLEAR "FC-Start!\n\rFlugzeit: %d min", FlugMinutenGesamt); // Note: this won't waste flash memory, if #DEBUG is not active |
252 | DebugOut.Status[0] = 0x01 | 0x02; |
258 | DebugOut.Status[0] = 0x01 | 0x02; |
253 | JetiBeep = 0; |
259 | JetiBeep = 0; |
- | 260 | if(EE_Parameter.ExtraConfig & CFG_NO_RCOFF_BEEPING) DisableRcOffBeeping = 1; |
|
- | 261 | ||
- | 262 | //#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) ///MartinW; only for 1284er |
|
- | 263 | //#warning : "### with Sponsored Message ###" |
|
- | 264 | // printf("\n\rJETI+ / HoTT+ Version sponsored by Flyinghigh.ch, progammed by metro, MartinW\n\r"); |
|
- | 265 | printf("\n\rACC-HH Version progammed by MartinR\n\r"); |
|
- | 266 | //#endif |
|
- | 267 | ||
254 | if(EE_Parameter.ExtraConfig & CFG_NO_RCOFF_BEEPING) DisableRcOffBeeping = 1; |
268 | |
255 | while (1) |
269 | while (1) |
256 | { |
270 | { |
Line 257... | Line 271... | ||
257 | if(ReceiverUpdateModeActive) while (1) PORTC &= ~(1<<7); // Beeper off |
271 | if(ReceiverUpdateModeActive) while (1) PORTC &= ~(1<<7); // Beeper off |