From e28650c8bd8a00ac27494684415a2a50c39873d8 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 27 Aug 2021 18:18:42 +0100 Subject: [PATCH] RC_Channel: remove recompute_pwm_no_deadzone --- libraries/RC_Channel/RC_Channel.cpp | 13 ------------- libraries/RC_Channel/RC_Channel.h | 1 - 2 files changed, 14 deletions(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 6fa765e37e..b3c6fcd149 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -154,19 +154,6 @@ bool RC_Channel::update(void) return true; } -// recompute control values with no deadzone -// When done this way the control_in value can be used as servo_out -// to give the same output as input -void RC_Channel::recompute_pwm_no_deadzone() -{ - if (type_in == RC_CHANNEL_TYPE_RANGE) { - control_in = pwm_to_range_dz(0); - } else { - //RC_CHANNEL_ANGLE - control_in = pwm_to_angle_dz(0); - } -} - /* return the center stick position expressed as a control_in value used for thr_mid in copter diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index ffcc3e6818..d29f20cfcf 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -35,7 +35,6 @@ public: // read input from hal.rcin - create a control_in value bool update(void); - void recompute_pwm_no_deadzone(); // calculate an angle given dead_zone and trim. This is used by the quadplane code // for hover throttle