ArduCopter
Macros | Variables
switches.cpp File Reference
#include "Copter.h"

Macros

#define CONTROL_SWITCH_DEBOUNCE_TIME_MS   200
 
#define read_aux_switch(chan, flag, option)
 

Variables

struct {
   uint8_t   CH6_flag: 2
 
   uint8_t   CH7_flag: 2
 
   uint8_t   CH8_flag: 2
 
   uint8_t   CH9_flag: 2
 
   uint8_t   CH10_flag: 2
 
   uint8_t   CH11_flag: 2
 
   uint8_t   CH12_flag: 2
 
aux_con
 

Macro Definition Documentation

◆ CONTROL_SWITCH_DEBOUNCE_TIME_MS

#define CONTROL_SWITCH_DEBOUNCE_TIME_MS   200

◆ read_aux_switch

#define read_aux_switch (   chan,
  flag,
  option 
)
Value:
do { \
switch_position = read_3pos_switch(chan); \
if (flag != switch_position) { \
flag = switch_position; \
do_aux_switch_function(option, flag); \
} \
} while (false)

Variable Documentation

◆ aux_con

struct { ... } aux_con

◆ CH10_flag

uint8_t CH10_flag

◆ CH11_flag

uint8_t CH11_flag

◆ CH12_flag

uint8_t CH12_flag

◆ CH6_flag

uint8_t CH6_flag

◆ CH7_flag

uint8_t CH7_flag

◆ CH8_flag

uint8_t CH8_flag

◆ CH9_flag

uint8_t CH9_flag