Browse Source

APMRover2: unhide default CH_7_PWM_TRIGGER & make it static const

master
Pierre Kancir 8 years ago committed by Grant Morphett
parent
commit
6d1586044c
  1. 4
      APMrover2/control_modes.cpp

4
APMrover2/control_modes.cpp

@ -1,5 +1,7 @@ @@ -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() @@ -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…
Cancel
Save