better cobboard commands in strat_event
[aversive.git] / projects / microb2010 / cobboard / sensor.h
index 27460db..a603e97 100644 (file)
@@ -1,7 +1,7 @@
-/*  
+/*
  *  Copyright Droids Corporation (2009)
  *  Olivier MATZ <zer0@droids-corp.org>
- * 
+ *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or
 #define ADC_MAX       4
 
 /* synchronize with sensor.c */
-#define S_CAP1          0
-#define S_FRONT         1
-#define S_CAP3          2
+#define S_COB_INSIDE_L  0
+#define S_CAP2          1
+#define S_COB_INSIDE_R  2
 #define S_CAP4          3
-#define S_COL_LEFT      4
-#define S_LEFT          5
-#define S_RIGHT         6
-#define S_COL_RIGHT     7
+#define S_LCOB          4
+#define S_CAP6          5
+#define S_CAP7          6
+#define S_RCOB          7
 #define S_RESERVED1     8
 #define S_RESERVED2     9
 #define S_RESERVED3    10
@@ -54,3 +54,5 @@ int16_t sensor_get_adc(uint8_t i);
 /* get filtered values of boolean sensors */
 uint16_t sensor_get_all(void);
 uint8_t sensor_get(uint8_t i);
+
+uint8_t cob_falling_edge(uint8_t side);