summaryrefslogtreecommitdiff
path: root/n/es-2006/src/sniff_rvb.h
diff options
context:
space:
mode:
authordufourj2006-05-16 23:58:09 +0000
committerdufourj2006-05-16 23:58:09 +0000
commite8634493098188f1a33dfa491a8bfa4b6e5dbd35 (patch)
tree672469a313b11275c38265ec370ae91302d2b8ad /n/es-2006/src/sniff_rvb.h
parentbc5944190b7ae0af55caa84f86d63bf95e40712f (diff)
ES :
- ajout du support des servo moteurs ; - import d'une partie des modifications d'Olivier à la pré-coupe sur l'analyse des capteurs rvb ; - import de la gestion de l'eeprom. TODO : - terminer les imports de la pré-coupe ; - mettre eeprom avec un .h ; - corriger l'interruption qui dure 1.4ms.
Diffstat (limited to 'n/es-2006/src/sniff_rvb.h')
-rw-r--r--n/es-2006/src/sniff_rvb.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/n/es-2006/src/sniff_rvb.h b/n/es-2006/src/sniff_rvb.h
index 348a071..313af5a 100644
--- a/n/es-2006/src/sniff_rvb.h
+++ b/n/es-2006/src/sniff_rvb.h
@@ -27,6 +27,7 @@
#include "io.h"
#include "common.h"
+#include "sensor_rvb.h"
/** Analysis sensors and determine the colors. */
@@ -43,6 +44,20 @@
#define RVB_SNIFF_ALL_COLORS 1
+/** Used for blue/red test */
+#define RVB_THRESHOLD_POSITIVE 0
+#define RVB_THRESHOLD_NEGATIVE 1
+
+#define RVB_THRESHOLD_BLUE 0
+#define RVB_THRESHOLD_RED 1
+
+/** Reference color. */
+extern uint16_t sniff_rvb_reference_color[RVB_MAX_SENSOR][RVB_SNIFF_MAX_INDEX];
+/** Threshold table data. */
+extern uint16_t sniff_rvb_threshold[2][RVB_MAX_SENSOR][RVB_SNIFF_MAX_INDEX];
+/** Used to build threshold */
+extern uint8_t sniff_rvb_sign[2][RVB_MAX_SENSOR][RVB_SNIFF_MAX_INDEX];
+
/** Set the current color seen by some sensors as the reference color.
* It must be called at the begining of the match for setting the green value.
*/