mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
RC_Channel: fixed comment on enable_aux_servos()
thanks to Mike McCauley for spotting
This commit is contained in:
parent
b2bd81f262
commit
e11ada7bf0
@ -104,7 +104,9 @@ void RC_Channel_aux::enable_aux_servos()
|
|||||||
{
|
{
|
||||||
update_aux_servo_function();
|
update_aux_servo_function();
|
||||||
|
|
||||||
// enable all channels that are not set to k_none or k_nr_aux_servo_functions
|
// enable all channels that are not set to a valid function. This
|
||||||
|
// includes k_none servos, which allows those to get their initial
|
||||||
|
// trim value on startup
|
||||||
for (uint8_t i = 0; i < RC_AUX_MAX_CHANNELS; i++) {
|
for (uint8_t i = 0; i < RC_AUX_MAX_CHANNELS; i++) {
|
||||||
if (_aux_channels[i]) {
|
if (_aux_channels[i]) {
|
||||||
RC_Channel_aux::Aux_servo_function_t function = (RC_Channel_aux::Aux_servo_function_t)_aux_channels[i]->function.get();
|
RC_Channel_aux::Aux_servo_function_t function = (RC_Channel_aux::Aux_servo_function_t)_aux_channels[i]->function.get();
|
||||||
|
Loading…
Reference in New Issue
Block a user