From b50ab75f4c4655c14a19f87031423ea38819420c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 1 Jul 2017 20:04:44 +1000 Subject: [PATCH] RC_Channel: added set_and_save_trim() --- libraries/RC_Channel/RC_Channel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 7540daefe9..9fb42fe20b 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -95,6 +95,8 @@ public: void set_radio_trim(int16_t val) { radio_trim.set(val);} void save_radio_trim() { radio_trim.save();} + void set_and_save_trim() { radio_trim.set_and_save(radio_in);} + bool min_max_configured() const { return radio_min.configured() && radio_max.configured();