Subversion Repositories FlightCtrl

Rev

Rev 1945 | Rev 2011 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1945 Rev 2009
Line 50... Line 50...
50
// +  POSSIBILITY OF SUCH DAMAGE.
50
// +  POSSIBILITY OF SUCH DAMAGE.
51
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
51
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
52
#include "main.h"
52
#include "main.h"
53
unsigned char DisableRcOffBeeping = 0;
53
unsigned char DisableRcOffBeeping = 0;
54
unsigned char PlatinenVersion = 10;
54
unsigned char PlatinenVersion = 10;
55
unsigned char SendVersionToNavi = 1;
-
 
56
unsigned char BattLowVoltageWarning = 94;
55
unsigned char BattLowVoltageWarning = 94;
57
unsigned int FlugMinuten = 0,FlugMinutenGesamt = 0;
56
unsigned int FlugMinuten = 0,FlugMinutenGesamt = 0;
58
unsigned int FlugSekunden = 0;
57
unsigned int FlugSekunden = 0;
59
pVoidFnct_pVoidFnctChar_const_fmt _printf_P;
58
pVoidFnct_pVoidFnctChar_const_fmt _printf_P;
60
unsigned char FoundMotors = 0;
59
unsigned char FoundMotors = 0;
Line 377... Line 376...
377
                                }
376
                                }
378
                                else if(!beeptime) FC_StatusFlags &= ~FC_STATUS_LOWBAT;
377
                                else if(!beeptime) FC_StatusFlags &= ~FC_STATUS_LOWBAT;
Line 379... Line 378...
379
 
378
 
380
                                SPI_StartTransmitPacket();
379
                                SPI_StartTransmitPacket();
381
                                SendSPI = 4;
380
                                SendSPI = 4;
382
                                if(!(FC_StatusFlags & FC_STATUS_FLY)) timer2 = 1450; // 0,5 Minuten aufrunden
381
                                // +++++++++++++++++++++++++++++++++
383
                                else
382
                                // Sekundentakt
384
                if(++second == 49)
383
                if(++second == 49)
385
                                 {
384
                                 {
-
 
385
                                   second = 0;
386
                                   second = 0;
386
                                   if(FC_StatusFlags & FC_STATUS_FLY) FlugSekunden++;
-
 
387
                                   else
-
 
388
                                    {
-
 
389
                                         timer2 = 1450; // 0,5 Minuten aufrunden
-
 
390
                                         if(StartLuftdruck < Luftdruck) StartLuftdruck++;
-
 
391
                                         else
-
 
392
                                         if(StartLuftdruck > Luftdruck) StartLuftdruck--;
387
                                   FlugSekunden++;
393
                                        }
-
 
394
                                 }
388
                                 }
395
                                // +++++++++++++++++++++++++++++++++
389
                                if(++timer2 == 2930)  // eine Minute
396
                                if(++timer2 == 2930)  // eine Minute
390
                                 {
397
                                 {
391
                                   timer2 = 0;
398
                                   timer2 = 0;
392
                   FlugMinuten++;
399
                   FlugMinuten++;