From d41388f242dd2cc98cb2a2a2d77e92c230fbaa5d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 25 Feb 2022 17:42:42 +1100 Subject: [PATCH] RC_Channel: privatise range accessors --- libraries/RC_Channel/RC_Channel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 6a286b7e44..da7d5aa127 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -56,8 +56,6 @@ public: bool within_min_dz() const; uint8_t percent_input() const; - int16_t pwm_to_range() const; - int16_t pwm_to_range_dz(uint16_t dead_zone) const; static const struct AP_Param::GroupInfo var_info[]; @@ -358,6 +356,9 @@ private: int16_t pwm_to_angle() const; int16_t pwm_to_angle_dz(uint16_t dead_zone) const; + int16_t pwm_to_range() const; + int16_t pwm_to_range_dz(uint16_t dead_zone) const; + // Structure used to detect and debounce switch changes struct { int8_t debounce_position = -1;