Skip to content

Commit

Permalink
Plane: apply voltage compensation to throttle in all manual throttle …
Browse files Browse the repository at this point in the history
…modes but manual mode (ArduPilot#33)
  • Loading branch information
shellixyz committed Jun 15, 2022
1 parent 5bf56ca commit de7968d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArduPlane/servos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,6 @@ void Plane::set_servos_controlled(void)
min_throttle = 0;
}

// conpensate for battery voltage drop
throttle_voltage_comp(min_throttle, max_throttle);

// apply watt limiter
throttle_watt_limiter(min_throttle, max_throttle);

Expand Down Expand Up @@ -620,6 +617,9 @@ void Plane::set_servos_controlled(void)
plane.ahrs.set_takeoff_expected(true);
}
}

// conpensate for battery voltage drop
throttle_voltage_comp(min_throttle, max_throttle);
}

/*
Expand Down

0 comments on commit de7968d

Please sign in to comment.