summaryrefslogtreecommitdiff
path: root/n/es-2006/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2006/src/main.c')
-rw-r--r--n/es-2006/src/main.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/n/es-2006/src/main.c b/n/es-2006/src/main.c
index fdab030..bde33eb 100644
--- a/n/es-2006/src/main.c
+++ b/n/es-2006/src/main.c
@@ -158,6 +158,7 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
int
main (void)
{
+ uint8_t init_rvb = 200;
uint8_t compt;
/* Serial port */
@@ -214,12 +215,24 @@ main (void)
}
/* Update all the asserv pin comunication */
sensor_rvb_update_asserv_pins ();
- /* Update RVB sensors data. */
- sensor_rvb_start_capture ();
+
+ if (init_rvb > 0)
+ {
+ init_rvb--;
+ if ((init_rvb == 1) || (init_rvb == 2))
+ {
+ sniff_rvb_set_ref_color (0, 0);
+ sniff_rvb_set_ref_color (1, 0);
+ sniff_rvb_set_ref_color (2, 0);
+ sniff_rvb_set_ref_color (3, 0);
+ }
+ }
/* gestion du barilet */
sequenceur_barillet();
+ /* Update RVB sensors data. */
+ sensor_rvb_start_capture ();
/* Get data for serial port */
while (uart0_poll ())