APMRover2: unhide default CH_7_PWM_TRIGGER & make it static const

This commit is contained in:
Pierre Kancir 2017-02-20 15:26:18 +01:00 committed by Grant Morphett
parent d4bd61d859
commit 6d1586044c
1 changed files with 2 additions and 2 deletions

View File

@ -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()