mirror of https://github.com/ArduPilot/ardupilot
APMRover2: unhide default CH_7_PWM_TRIGGER & make it static const
This commit is contained in:
parent
d4bd61d859
commit
6d1586044c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue