From 120564f0944917ecfa5f1ee9a412ae5bb26157ee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 12 Jun 2016 15:01:49 +1000 Subject: [PATCH] RC_Channel: set_radio() should not constrain values caller is supplying direct PWM value. The MIN/MAX should not apply --- libraries/RC_Channel/RC_Channel_aux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel_aux.cpp b/libraries/RC_Channel/RC_Channel_aux.cpp index 8b8307ae3a..9101eeb740 100644 --- a/libraries/RC_Channel/RC_Channel_aux.cpp +++ b/libraries/RC_Channel/RC_Channel_aux.cpp @@ -177,7 +177,7 @@ RC_Channel_aux::set_radio(RC_Channel_aux::Aux_servo_function_t function, int16_t } for (uint8_t i = 0; i < RC_AUX_MAX_CHANNELS; i++) { if (_aux_channels[i] && _aux_channels[i]->function.get() == function) { - _aux_channels[i]->set_radio_out(constrain_int16(value,_aux_channels[i]->get_radio_min(),_aux_channels[i]->get_radio_max())); + _aux_channels[i]->set_radio_out(value); _aux_channels[i]->output(); } }