From 9dcaf155a67348e3ca0f9399e776a602d92432e4 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 2 Apr 2020 16:33:23 +0200 Subject: [PATCH] RC_Channel: add use RC_CALIB_MIN_LIMIT_PWM and RC_CALIB_MAX_LIMIT_PWM --- libraries/RC_Channel/RC_Channel.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 9c1427fa7f..3d50056826 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -240,6 +240,11 @@ public: #if !HAL_MINIMIZE_FEATURES const char *string_for_aux_function(AUX_FUNC function) const; #endif + // pwm value above which we condider that Radio min value is invalid + static const uint16_t RC_CALIB_MIN_LIMIT_PWM = 1300; + // pwm value under which we condider that Radio max value is invalid + static const uint16_t RC_CALIB_MAX_LIMIT_PWM = 1700; + // pwm value above which the option will be invoked: static const uint16_t AUX_PWM_TRIGGER_HIGH = 1800;