From ee06faed88d2e5b8fecc72aba89b1d1b69f903d3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 25 Nov 2019 12:52:19 +1100 Subject: [PATCH] AntennaTracker: use enum-class for SRV_CHANNEL_LIMIT_TRIM and friends --- AntennaTracker/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index 774ee6ef4f..e42836ebe0 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -195,8 +195,8 @@ void Tracker::disarm_servos() void Tracker::prepare_servos() { start_time_ms = AP_HAL::millis(); - SRV_Channels::set_output_limit(SRV_Channel::k_tracker_yaw, SRV_Channel::SRV_CHANNEL_LIMIT_TRIM); - SRV_Channels::set_output_limit(SRV_Channel::k_tracker_pitch, SRV_Channel::SRV_CHANNEL_LIMIT_TRIM); + SRV_Channels::set_output_limit(SRV_Channel::k_tracker_yaw, SRV_Channel::Limit::TRIM); + SRV_Channels::set_output_limit(SRV_Channel::k_tracker_pitch, SRV_Channel::Limit::TRIM); SRV_Channels::calc_pwm(); SRV_Channels::output_ch_all(); }