AP_HAL: added get_esc_scaling() API for rcout

This commit is contained in:
Andrew Tridgell 2018-04-02 17:57:33 +10:00
parent a2eec97325
commit dacbef2120

View File

@ -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.
*/