Subversion Repositories FlightCtrl

Rev

Rev 2527 | Rev 2541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2527 Rev 2534
Line 522... Line 522...
522
                                   if(modell_fliegt < 1024)
522
                                   if(modell_fliegt < 1024)
523
                                    {
523
                                    {
524
                                         if(StartLuftdruck < Luftdruck) StartLuftdruck += 5;
524
                                         if(StartLuftdruck < Luftdruck) StartLuftdruck += 5;
525
                                         else
525
                                         else
526
                                         if(StartLuftdruck > Luftdruck) StartLuftdruck -= 5;
526
                                         if(StartLuftdruck > Luftdruck) StartLuftdruck -= 5;
-
 
527
                                         FC_StatusFlags3 &= ~FC_STATUS3_REDUNDANCE_ERROR;
527
                                        }
528
                                        }
-
 
529
                                        else
-
 
530
                                        {
-
 
531
#ifdef REDUNDANT_FC_MASTER
-
 
532
                                          if(!(FC_StatusFlags3 & FC_STATUS3_REDUNDANCE_AKTIVE)) FC_StatusFlags3 |= FC_STATUS3_REDUNDANCE_ERROR;
-
 
533
                                          else FC_StatusFlags3 &= ~FC_STATUS3_REDUNDANCE_ERROR;
-
 
534
#endif
-
 
535
                                        }
528
                             if(UBat > BattLowVoltageWarning + 1) FC_StatusFlags &= ~FC_STATUS_LOWBAT;
536
                             if(UBat > BattLowVoltageWarning + 1) FC_StatusFlags &= ~FC_STATUS_LOWBAT;
529
                                 }
537
                                 }
530
                                // +++++++++++++++++++++++++++++++++
538
                                // +++++++++++++++++++++++++++++++++
531
                                if(++timer2 == 2930)  // eine Minute
539
                                if(++timer2 == 2930)  // eine Minute
532
                                 {
540
                                 {
Line 553... Line 561...
553
                if(BytegapSPI == 0)  SPI_TransmitByte();  
561
                if(BytegapSPI == 0)  SPI_TransmitByte();  
554
           }  
562
           }  
555
         else if(BytegapSPI == 0)  SPI_TransmitByte();
563
         else if(BytegapSPI == 0)  SPI_TransmitByte();
556
    }
564
    }
557
}
565
}
558
//DebugOut.Analog[16] 
566
//DebugOut.Analog[]