mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: create and use a singleton for SRV_Channels
avoid creation of static pointers to objects held within SRV_Channels
This commit is contained in:
parent
a0eef1039c
commit
fbb28a0c3a
|
@ -82,7 +82,7 @@ void Tracker::one_second_loop()
|
|||
mavlink_system.sysid = g.sysid_this_mav;
|
||||
|
||||
// update assigned functions and enable auxiliary servos
|
||||
SRV_Channels::enable_aux_servos();
|
||||
AP::srv().enable_aux_servos();
|
||||
|
||||
// updated armed/disarmed status LEDs
|
||||
update_armed_disarmed();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
void Tracker::init_servos()
|
||||
{
|
||||
// update assigned functions and enable auxiliary servos
|
||||
SRV_Channels::enable_aux_servos();
|
||||
AP::srv().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);
|
||||
|
|
Loading…
Reference in New Issue