Subversion Repositories FlightCtrl

Rev

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

Rev 1312 Rev 1314
Line 1412... Line 1412...
1412
                        DebugOut.Analog[23] = -tmp_int;
1412
                        DebugOut.Analog[23] = -tmp_int;
1413
                        LIMIT_MIN_MAX(tmp_int, -127, 255);
1413
                        LIMIT_MIN_MAX(tmp_int, -127, 255);
1414
                        HCGas -= tmp_int;
1414
                        HCGas -= tmp_int;
Line 1415... Line 1415...
1415
 
1415
 
1416
                        // limit deviation from hoover point within the target region
1416
                        // limit deviation from hoover point within the target region
1417
                        if( (!HeightTrimming) && (HooverGas > 0)) // height setpoint is not changed and hoover gas not zero
1417
                        if( (abs(HeightDeviation) < 150)  && (!HeightTrimming) && (HooverGas > 0)) // height setpoint is not changed and hoover gas not zero
1418
                        {
1418
                        {
1419
                                LIMIT_MIN_MAX(HCGas, HooverGasMin, HooverGasMax); // limit gas around the hoover point
1419
                                LIMIT_MIN_MAX(HCGas, HooverGasMin, HooverGasMax); // limit gas around the hoover point
Line 1420... Line 1420...
1420
                        }
1420
                        }