Rev 1523 | Rev 1533 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1523 | Rev 1529 | ||
---|---|---|---|
Line 333... | Line 333... | ||
333 | 333 | ||
334 | ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
334 | ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
Line 335... | Line 335... | ||
335 | printf("\n\rUsing parameterset %d", GetActiveParamSetNumber()); |
335 | printf("\n\rUsing parameterset %d", GetActiveParamSetNumber()); |
336 | 336 | ||
337 | 337 | ||
338 | if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
338 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
339 | { |
339 | { |
340 | printf("\n\rCalibrating pressure sensor.."); |
340 | printf("\n\rCalibrating pressure sensor.."); |
Line 365... | Line 365... | ||
365 | 365 | ||
366 | printf("\n\r===================================\n\r"); |
366 | printf("\n\r===================================\n\r"); |
367 | //SpektrumBinding(); |
367 | //SpektrumBinding(); |
368 | timer = SetDelay(2000); |
368 | timer = SetDelay(2000); |
369 | timerPolling = SetDelay(250); |
369 | timerPolling = SetDelay(250); |
370 | 370 | ||
371 | while (1) |
371 | while (1) |
Line 372... | Line 372... | ||
372 | { |
372 | { |
373 | 373 | ||
Line 457... | Line 457... | ||
457 | else if(!beeptime) FCFlags &= ~FCFLAG_LOWBAT; |
457 | else if(!beeptime) FCFlags &= ~FCFLAG_LOWBAT; |
Line 458... | Line 458... | ||
458 | 458 | ||
459 | SPI_StartTransmitPacket(); |
459 | SPI_StartTransmitPacket(); |
460 | SendSPI = 4; |
460 | SendSPI = 4; |
461 | if(!MotorenEin) timer2 = 1450; // 0,5 Minuten aufrunden |
461 | if(!MotorenEin) timer2 = 1450; // 0,5 Minuten aufrunden |
462 | else |
462 | else |
463 | if(++second == 49) |
463 | if(++second == 49) |
464 | { |
464 | { |
465 | second = 0; |
465 | second = 0; |
466 | FlugSekunden++; |
466 | FlugSekunden++; |
467 | } |
467 | } |
468 | 468 | ||
469 | if(++timer2 == 2930) // eine Minute |
469 | if(++timer2 == 2930) // eine Minute |
470 | { |
470 | { |
471 | timer2 = 0; |
471 | timer2 = 0; |
472 | FlugMinuten++; |
472 | FlugMinuten++; |