From dacbef21203c9f61245487340b8974ebfb969daf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Apr 2018 17:57:33 +1000 Subject: [PATCH] AP_HAL: added get_esc_scaling() API for rcout --- libraries/AP_HAL/RCOutput.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_HAL/RCOutput.h b/libraries/AP_HAL/RCOutput.h index 242582ba25..34dbbcc828 100644 --- a/libraries/AP_HAL/RCOutput.h +++ b/libraries/AP_HAL/RCOutput.h @@ -110,6 +110,11 @@ public: */ virtual void set_esc_scaling(uint16_t min_pwm, uint16_t max_pwm) {} + /* + return ESC scaling value from set_esc_scaling() + */ + virtual bool get_esc_scaling(uint16_t &min_pwm, uint16_t &max_pwm) { return false; } + /* returns the pwm value scaled to [-1;1] regrading to set_esc_scaling ranges range without constraints. */