mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
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"
|
#include "Rover.h"
|
||||||
|
|
||||||
|
static const int16_t CH_7_PWM_TRIGGER = 1800;
|
||||||
|
|
||||||
void Rover::read_control_switch()
|
void Rover::read_control_switch()
|
||||||
{
|
{
|
||||||
static bool switch_debouncer;
|
static bool switch_debouncer;
|
||||||
@ -75,8 +77,6 @@ void Rover::reset_control_switch()
|
|||||||
read_control_switch();
|
read_control_switch();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CH_7_PWM_TRIGGER 1800
|
|
||||||
|
|
||||||
// read at 10 hz
|
// read at 10 hz
|
||||||
// set this to your trainer switch
|
// set this to your trainer switch
|
||||||
void Rover::read_trim_switch()
|
void Rover::read_trim_switch()
|
||||||
|
Loading…
Reference in New Issue
Block a user