Subversion Repositories FlightCtrl

Rev

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

Rev 1309 Rev 1312
Line 1394... Line 1394...
1394
          }
1394
          }
Line 1395... Line 1395...
1395
           
1395
           
1396
         if(HoehenWert > SollHoehe || !(EE_Parameter.ExtraConfig & CFG2_HEIGHT_LIMIT))
1396
         if(HoehenWert > SollHoehe || !(EE_Parameter.ExtraConfig & CFG2_HEIGHT_LIMIT))
1397
                 {
1397
                 {
1398
            // ------------------------- P-Part ----------------------------
1398
            // ------------------------- P-Part ----------------------------
1399
            HeightDeviation = (int)(HoehenWert - SollHoehe); // positive when to high
1399
            HeightDeviation = (int)(HoehenWert - SollHoehe); // positive when too high
1400
                        tmp_int = (HeightDeviation * (int)Parameter_Hoehe_P) / 16; // p-part
1400
                        tmp_int = (HeightDeviation * (int)Parameter_Hoehe_P) / 16; // p-part
1401
                        HCGas -= tmp_int;
1401
                        HCGas -= tmp_int;
1402
                        // ------------------------- D-Part 1: Vario Meter ----------------------------
1402
                        // ------------------------- D-Part 1: Vario Meter ----------------------------
1403
                        tmp_int = VarioMeter / 8;
1403
                        tmp_int = VarioMeter / 8;