projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos-mapd: Install altosmapd.jar file
[fw/altos]
/
src
/
drivers
/
ao_lco.h
diff --git
a/src/drivers/ao_lco.h
b/src/drivers/ao_lco.h
index e528c2ad22b313080717e0987f0c2298e901d210..2958fbccc33cae7ec874b1edfaa66dc63e5f4aaf 100644
(file)
--- a/
src/drivers/ao_lco.h
+++ b/
src/drivers/ao_lco.h
@@
-25,10
+25,6
@@
#define AO_LCO_DRAG 1
#endif
#define AO_LCO_DRAG 1
#endif
-#if AO_LCO_DRAG
-#define AO_LCO_BOX_DRAG 0x1000
-#endif
-
#define DEBUG 1
#if DEBUG
#define DEBUG 1
#if DEBUG
@@
-38,25
+34,21
@@
extern uint8_t ao_lco_debug;
#define PRINTD(...)
#endif
#define PRINTD(...)
#endif
+#if AO_LCO_DRAG
extern uint8_t ao_lco_drag_race; /* TRUE when drag race mode enabled */
extern uint8_t ao_lco_drag_race; /* TRUE when drag race mode enabled */
+#endif
+
extern uint8_t ao_lco_pad; /* Currently selected pad */
extern int16_t ao_lco_box; /* Currently selected box */
extern uint8_t ao_lco_pad; /* Currently selected pad */
extern int16_t ao_lco_box; /* Currently selected box */
-extern uint8_t ao_lco_armed;
-extern uint8_t ao_lco_firing;
+extern uint8_t ao_lco_armed;
/* armed mode active */
+extern uint8_t ao_lco_firing;
/* fire button pressed */
extern struct ao_pad_query ao_pad_query; /* Last received QUERY from pad */
extern struct ao_pad_query ao_pad_query; /* Last received QUERY from pad */
-#define AO_LCO_VALID_LAST 1
-#define AO_LCO_VALID_EVER 2
-
#define AO_LCO_PAD_VOLTAGE 0 /* Pad number to show box voltage */
extern uint8_t ao_lco_min_box, ao_lco_max_box;
#define AO_LCO_PAD_VOLTAGE 0 /* Pad number to show box voltage */
extern uint8_t ao_lco_min_box, ao_lco_max_box;
-extern uint8_t ao_lco_selected[AO_PAD_MAX_BOXES];
-extern uint8_t ao_lco_valid[AO_PAD_MAX_BOXES];
-extern uint8_t ao_lco_channels[AO_PAD_MAX_BOXES];
-extern uint16_t ao_lco_tick_offset[AO_PAD_MAX_BOXES];
#define AO_LCO_MASK_SIZE(n) (((n) + 7) >> 3)
#define AO_LCO_MASK_ID(n) ((n) >> 3)
#define AO_LCO_MASK_SIZE(n) (((n) + 7) >> 3)
#define AO_LCO_MASK_ID(n) ((n) >> 3)