Browse Source

SRV_Channel: call rcout->update_channel_masks() at 1Hz

zr-v5.1
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
c7cc53d224
  1. 4
      libraries/SRV_Channel/SRV_Channel_aux.cpp

4
libraries/SRV_Channel/SRV_Channel_aux.cpp

@ -191,6 +191,7 @@ void SRV_Channels::update_aux_servo_function(void) @@ -191,6 +191,7 @@ void SRV_Channels::update_aux_servo_function(void)
}
/// Should be called after the the servo functions have been initialized
/// called at 1Hz
void SRV_Channels::enable_aux_servos()
{
hal.rcout->set_default_rate(uint16_t(_singleton->default_rate.get()));
@ -221,6 +222,9 @@ void SRV_Channels::enable_aux_servos() @@ -221,6 +222,9 @@ void SRV_Channels::enable_aux_servos()
}
}
// propagate channel masks to the ESCS
hal.rcout->update_channel_masks();
#if HAL_SUPPORT_RCOUT_SERIAL
blheli_ptr->update();
#endif

Loading…
Cancel
Save