Subversion Repositories FlightCtrl

Rev

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

Rev 1254 Rev 1266
Line 1319... Line 1319...
1319
      h -= (Parameter_Luftdruck_D * VarioMeter)/128;    // D-Anteil
1319
      h -= (Parameter_Luftdruck_D * VarioMeter)/128;    // D-Anteil
1320
      tmp_int = ((Mess_Integral_Hoch / 128) * (signed long) Parameter_Hoehe_ACC_Wirkung) / (128 / STICK_GAIN);
1320
      tmp_int = ((Mess_Integral_Hoch / 128) * (signed long) Parameter_Hoehe_ACC_Wirkung) / (128 / STICK_GAIN);
1321
      if(tmp_int > 70*STICK_GAIN) tmp_int = 70*STICK_GAIN;
1321
      if(tmp_int > 70*STICK_GAIN) tmp_int = 70*STICK_GAIN;
1322
      else if(tmp_int < -(70*STICK_GAIN)) tmp_int = -(70*STICK_GAIN);
1322
      else if(tmp_int < -(70*STICK_GAIN)) tmp_int = -(70*STICK_GAIN);
1323
      h -= tmp_int;
1323
      h -= tmp_int;
1324
      hoehenregler = (hoehenregler*15 + h) / 16;
1324
      hoehenregler = (hoehenregler*7 + h) / 8;
1325
      if(hoehenregler < EE_Parameter.Hoehe_MinGas * STICK_GAIN) // nicht unter MIN
1325
      if(hoehenregler < EE_Parameter.Hoehe_MinGas * STICK_GAIN) // nicht unter MIN
1326
       {
1326
       {
1327
         if(GasMischanteil >= EE_Parameter.Hoehe_MinGas * STICK_GAIN) hoehenregler = EE_Parameter.Hoehe_MinGas * STICK_GAIN;
1327
         if(GasMischanteil >= EE_Parameter.Hoehe_MinGas * STICK_GAIN) hoehenregler = EE_Parameter.Hoehe_MinGas * STICK_GAIN;
1328
         if(GasMischanteil < EE_Parameter.Hoehe_MinGas * STICK_GAIN) hoehenregler = GasMischanteil;
1328
         if(GasMischanteil < EE_Parameter.Hoehe_MinGas * STICK_GAIN) hoehenregler = GasMischanteil;
1329
       }
1329
       }