Tracker: enable aux servos at init and at 1hz

This commit is contained in:
Randy Mackay 2018-09-05 17:47:35 +09:00
parent c6d761c78f
commit 4a5c6fe1e5
2 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,9 @@ void Tracker::one_second_loop()
// sync MAVLink system ID
mavlink_system.sysid = g.sysid_this_mav;
// update assigned functions and enable auxiliary servos
SRV_Channels::enable_aux_servos();
// updated armed/disarmed status LEDs
update_armed_disarmed();

View File

@ -7,6 +7,9 @@
// init_servos - initialises the servos
void Tracker::init_servos()
{
// update assigned functions and enable auxiliary servos
SRV_Channels::enable_aux_servos();
SRV_Channels::set_default_function(CH_YAW, SRV_Channel::k_tracker_yaw);
SRV_Channels::set_default_function(CH_PITCH, SRV_Channel::k_tracker_pitch);