diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index db645762af..9eef66315a 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -349,7 +349,7 @@ void Plane::one_second_loop() // sync MAVLink system ID mavlink_system.sysid = g.sysid_this_mav; - SRV_Channels::enable_aux_servos(); + AP::srv().enable_aux_servos(); // update notify flags AP_Notify::flags.pre_arm_check = arming.pre_arm_checks(false); diff --git a/ArduPlane/radio.cpp b/ArduPlane/radio.cpp index cb2048be6d..49835adcfd 100644 --- a/ArduPlane/radio.cpp +++ b/ArduPlane/radio.cpp @@ -107,7 +107,7 @@ void Plane::init_rc_out_main() */ void Plane::init_rc_out_aux() { - SRV_Channels::enable_aux_servos(); + AP::srv().enable_aux_servos(); servos_output(); diff --git a/ArduPlane/servos.cpp b/ArduPlane/servos.cpp index 49e3e07b46..1c862050a9 100644 --- a/ArduPlane/servos.cpp +++ b/ArduPlane/servos.cpp @@ -1050,7 +1050,7 @@ void Plane::servos_output(void) SRV_Channels::output_ch_all(); - SRV_Channels::push(); + AP::srv().push(); if (g2.servo_channels.auto_trim_enabled()) { servos_auto_trim();