summaryrefslogtreecommitdiff
path: root/n/es-2006/src/sniff_rvb.h
diff options
context:
space:
mode:
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.
*/