From 05fbc4767d44aad2f1dec5d3b469f63291a6e79b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 30 Aug 2024 14:01:32 +1000 Subject: [PATCH] SRV_Channel: added lift_release for releasing a balloon or other lift device --- libraries/SRV_Channel/SRV_Channel.h | 1 + libraries/SRV_Channel/SRV_Channel_aux.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/SRV_Channel/SRV_Channel.h b/libraries/SRV_Channel/SRV_Channel.h index 9e6d69b2b7..24631a448d 100644 --- a/libraries/SRV_Channel/SRV_Channel.h +++ b/libraries/SRV_Channel/SRV_Channel.h @@ -188,6 +188,7 @@ public: k_rcin14_mapped = 153, k_rcin15_mapped = 154, k_rcin16_mapped = 155, + k_lift_release = 156, k_nr_aux_servo_functions ///< This must be the last enum value (only add new values _before_ this one) } Aux_servo_function_t; diff --git a/libraries/SRV_Channel/SRV_Channel_aux.cpp b/libraries/SRV_Channel/SRV_Channel_aux.cpp index 1412957202..c117915e8a 100644 --- a/libraries/SRV_Channel/SRV_Channel_aux.cpp +++ b/libraries/SRV_Channel/SRV_Channel_aux.cpp @@ -140,6 +140,7 @@ void SRV_Channel::aux_servo_function_setup(void) case k_flap: case k_flap_auto: case k_egg_drop: + case k_lift_release: set_range(100); break; case k_heli_rsc: