Skip to content

Commit

Permalink
Plane: match cork() and push()
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 8, 2024
1 parent 9d21b33 commit 356d797
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ArduPlane/Plane.h
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ class Plane : public AP_Vehicle {
void dspoiler_update(void);
void airbrake_update(void);
void landing_neutral_control_surface_servos(void);
void servos_output(void);
void servos_output(bool cork = true);
void servos_auto_trim(void);
void servos_twin_engine_mix();
void force_flare();
Expand Down
8 changes: 5 additions & 3 deletions ArduPlane/servos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void Plane::set_servos(void)
#endif // AP_ICENGINE_ENABLED

// run output mixer and send values to the hal for output
servos_output();
servos_output(false);
}

/*
Expand Down Expand Up @@ -1017,10 +1017,12 @@ void Plane::indicate_waiting_for_rud_neutral_to_takeoff(void)
for each channel and calculates PWM values, then pushes them to
hal.rcout
*/
void Plane::servos_output(void)
void Plane::servos_output(bool cork)
{
auto &srv = AP::srv();
srv.cork();
if (cork) {
srv.cork();
}

// support twin-engine aircraft
servos_twin_engine_mix();
Expand Down

0 comments on commit 356d797

Please sign in to comment.