static int16_t nav_throttle; // 0-1000 for throttle control
static int16_t crosstrack_error;
static uint32_t throttle_integrator; // used to integrate throttle output to predict battery life
static bool invalid_throttle; // used to control when we calculate nav_throttle
@ -490,12 +489,12 @@ static int32_t wp_totalDistance; // meters - distance between old and next w
@@ -490,12 +489,12 @@ static int32_t wp_totalDistance; // meters - distance between old and next w
// repeating event control
// -----------------------
static byte event_id; // what to do - see defines
static uint32_t event_timer; // when the event was asked for in ms
static uint16_t event_delay; // how long to delay the next firing of event in millis
static int16_t event_repeat; // how many times to fire : 0 = forever, 1 = do once, 2 = do twice
static int16_t event_value; // per command value, such as PWM for servos
static int16_t event_undo_value; // the value used to undo commands
static byte event_id; // what to do - see defines
static uint32_t event_timer; // when the event was asked for in ms
static uint16_t event_delay; // how long to delay the next firing of event in millis
static int16_t event_repeat; // how many times to fire : 0 = forever, 1 = do once, 2 = do twice
static int16_t event_value; // per command value, such as PWM for servos
static int16_t event_undo_value; // the value used to undo commands
//static byte repeat_forever;
//static byte undo_event; // counter for timing the undo