Plane: use cork/push wrapper

This commit is contained in:
Guy Tzoler 2017-11-03 13:27:29 +11:00 committed by Andrew Tridgell
parent 7f68be9bdf
commit a6c7890c74
2 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ void Plane::init_rc_out_aux()
update_aux();
SRV_Channels::enable_aux_servos();
hal.rcout->cork();
SRV_Channels::cork();
// Initialization of servo outputs
SRV_Channels::output_trim_all();

View File

@ -525,7 +525,7 @@ void Plane::set_servos(void)
// start with output corked. the cork is released when we run
// servos_output(), which is run from all code paths in this
// function
hal.rcout->cork();
SRV_Channels::cork();
// this is to allow the failsafe module to deliberately crash
// the plane. Only used in extreme circumstances to meet the
@ -657,7 +657,7 @@ void Plane::set_servos(void)
*/
void Plane::servos_output(void)
{
hal.rcout->cork();
SRV_Channels::cork();
// support twin-engine aircraft
servos_twin_engine_mix();
@ -680,7 +680,7 @@ void Plane::servos_output(void)
SRV_Channels::output_ch_all();
hal.rcout->push();
SRV_Channels::push();
if (g2.servo_channels.auto_trim_enabled()) {
servos_auto_trim();