Skip to content

Commit

Permalink
AP_LandingGear: use new SRV_Channels API
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jan 12, 2017
1 parent b3d30cb commit 929fbce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_LandingGear/AP_LandingGear.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "AP_LandingGear.h"
#include <AP_Relay/AP_Relay.h>
#include <AP_Math/AP_Math.h>
#include <RC_Channel/RC_Channel.h>
#include <SRV_Channel/SRV_Channel.h>
#include <AP_HAL/AP_HAL.h>

extern const AP_HAL::HAL& hal;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 929fbce

Please sign in to comment.