From 929fbce2c231c84f3c2a949258c0b4958256c099 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 7 Jan 2017 12:06:40 +1100 Subject: [PATCH] AP_LandingGear: use new SRV_Channels API --- libraries/AP_LandingGear/AP_LandingGear.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_LandingGear/AP_LandingGear.cpp b/libraries/AP_LandingGear/AP_LandingGear.cpp index 9dec25d382..e450c756db 100644 --- a/libraries/AP_LandingGear/AP_LandingGear.cpp +++ b/libraries/AP_LandingGear/AP_LandingGear.cpp @@ -1,7 +1,7 @@ #include "AP_LandingGear.h" #include #include -#include +#include #include extern const AP_HAL::HAL& hal; @@ -39,7 +39,7 @@ void AP_LandingGear::enable(bool on_off) void AP_LandingGear::deploy() { // set servo PWM to deployed position - RC_Channel_aux::set_radio(RC_Channel_aux::k_landing_gear_control, _servo_deploy_pwm); + SRV_Channels::set_output_pwm(SRV_Channel::k_landing_gear_control, _servo_deploy_pwm); // set deployed flag _deployed = true; @@ -49,7 +49,7 @@ void AP_LandingGear::deploy() void AP_LandingGear::retract() { // set servo PWM to retracted position - RC_Channel_aux::set_radio(RC_Channel_aux::k_landing_gear_control, _servo_retract_pwm); + SRV_Channels::set_output_pwm(SRV_Channel::k_landing_gear_control, _servo_retract_pwm); // reset deployed flag _deployed = false;