Subversion Repositories FlightCtrl

Rev

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

Rev 2332 Rev 2334
Line 1498... Line 1498...
1498
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht
1498
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht
1499
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1499
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1500
  if(UBat > BattLowVoltageWarning) GasMischanteil = ((unsigned int)GasMischanteil * BattLowVoltageWarning) / UBat; // Gas auf das aktuelle Spannungvieveau beziehen
1500
  if(UBat > BattLowVoltageWarning) GasMischanteil = ((unsigned int)GasMischanteil * BattLowVoltageWarning) / UBat; // Gas auf das aktuelle Spannungvieveau beziehen
1501
  GasMischanteil *= STICK_GAIN;
1501
  GasMischanteil *= STICK_GAIN;
1502
        // if height control is activated
1502
        // if height control is activated
1503
 if((Parameter_GlobalConfig & CFG_HOEHENREGELUNG) && !(Looping_Roll || Looping_Nick))  // Höhenregelung
1503
 if((Parameter_GlobalConfig & CFG_HOEHENREGELUNG) && !(Looping_Roll || Looping_Nick) && !(VersionInfo.HardwareError[0] & 0x7F))  // Höhenregelung
1504
        {
1504
        {
1505
                #define HOVER_GAS_AVERAGE 16384L                // 16384 * 2ms = 32s averaging
1505
                #define HOVER_GAS_AVERAGE 16384L                // 16384 * 2ms = 32s averaging
1506
                #define HC_GAS_AVERAGE 4                        // 4 * 2ms= 8ms averaging
1506
                #define HC_GAS_AVERAGE 4                        // 4 * 2ms= 8ms averaging
Line 1507... Line 1507...
1507
 
1507