From 6d1586044c83e065ae7c328134604c8ac58cdb21 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 20 Feb 2017 15:26:18 +0100 Subject: [PATCH] APMRover2: unhide default CH_7_PWM_TRIGGER & make it static const --- APMrover2/control_modes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APMrover2/control_modes.cpp b/APMrover2/control_modes.cpp index c6655e2c7e..3ae2117534 100644 --- a/APMrover2/control_modes.cpp +++ b/APMrover2/control_modes.cpp @@ -1,5 +1,7 @@ #include "Rover.h" +static const int16_t CH_7_PWM_TRIGGER = 1800; + void Rover::read_control_switch() { static bool switch_debouncer; @@ -75,8 +77,6 @@ void Rover::reset_control_switch() read_control_switch(); } -#define CH_7_PWM_TRIGGER 1800 - // read at 10 hz // set this to your trainer switch void Rover::read_trim_switch()