summaryrefslogtreecommitdiff
path: root/n/es-2006/src/sensor_rvb.h
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2006/src/sensor_rvb.h')
-rw-r--r--n/es-2006/src/sensor_rvb.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/n/es-2006/src/sensor_rvb.h b/n/es-2006/src/sensor_rvb.h
index ef53706..787dc98 100644
--- a/n/es-2006/src/sensor_rvb.h
+++ b/n/es-2006/src/sensor_rvb.h
@@ -56,10 +56,12 @@
#define RVB_INDEX_BLUE 1
#define RVB_INDEX_CLEAR 2
#define RVB_INDEX_GREEN 3
+/** Define the number of color the sensor can manages. */
+#define RVB_MAX_INDEX 4
/** Results table for 9 RVB sensors (RVCB) :
* Values are in the folowing order : Red, Blue, Clear, Green. */
-extern volatile uint16_t sensor_rvb_values[RVB_MAX_SENSOR][4];
+extern volatile uint16_t sensor_rvb_values[RVB_MAX_SENSOR][RVB_MAX_INDEX];
/** Initialisation of the RVB sensors module. */
void sensor_rvb_init (void);
@@ -75,25 +77,7 @@ void sensor_rvb_start_capture (void);
* - latency : delay between change for sensor. Must be more than 100ns. This
* setting is in ns.
*/
-void sensor_rvb_config (uint8_t false_ic, uint8_t max_ov, uint8_t latency);
-
-/** 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.
- */
-void sensor_rvb_set_ref_color (void);
-
-/** Set the threshold of the differents colors.
- * There are used for the algorithm that distinguish colors.
- */
-void sensor_rvb_set_threshold (uint8_t color, uint16_t red_ts, uint16_t
- blue_ts, uint16_t clear_ts, uint16_t green_ts);
-
-/** Analysis a color :
- * - sensor : the sensor number to analysis ;
- * - mode : for futur use.
- * return the color number.
- */
-uint8_t sensor_rvb_analysis_color (uint8_t sensor, uint8_t mode);
+void sensor_rvb_config (uint8_t false_ic, uint16_t max_ov, uint8_t latency);
/** Update pins connected to the asserv AVR with the colors seen by the
* sensors. */