SRV_Channel: remove set_safety_limit

This commit is contained in:
Iampete1 2021-08-29 13:18:06 +01:00 committed by Andrew Tridgell
parent cc03b2975c
commit 2abe120969
2 changed files with 0 additions and 21 deletions

View File

@ -423,9 +423,6 @@ public:
// setup failsafe for an auxiliary channel function
static void set_failsafe_limit(SRV_Channel::Aux_servo_function_t function, SRV_Channel::Limit limit);
// setup safety for an auxiliary channel function (used when disarmed)
static void set_safety_limit(SRV_Channel::Aux_servo_function_t function, SRV_Channel::Limit limit);
// set servo to a Limit
static void set_output_limit(SRV_Channel::Aux_servo_function_t function, SRV_Channel::Limit limit);

View File

@ -402,24 +402,6 @@ SRV_Channels::set_failsafe_limit(SRV_Channel::Aux_servo_function_t function, SRV
}
}
/*
setup safety value for an auxiliary function type to a Limit
*/
void
SRV_Channels::set_safety_limit(SRV_Channel::Aux_servo_function_t function, SRV_Channel::Limit limit)
{
if (!function_assigned(function)) {
return;
}
for (uint8_t i = 0; i < NUM_SERVO_CHANNELS; i++) {
const SRV_Channel &c = channels[i];
if (c.function.get() == function) {
uint16_t pwm = c.get_limit_pwm(limit);
hal.rcout->set_safety_pwm(1U<<c.ch_num, pwm);
}
}
}
/*
set radio output value for an auxiliary function type to a Limit
*/