vt100: include pgmspace.h as we use PROGMEM macro
[aversive.git] / projects / microb2010 / cobboard / sensor.c
index c471033..b6c3d34 100644 (file)
@@ -140,16 +140,16 @@ struct sensor_filter {
 };
 
 /* pullup mapping:
- * CAP 1,5,6,7,8
+ * CAP 1,5,6,7,8 (notation elec)
  */
 static struct sensor_filter sensor_filter[SENSOR_MAX] = {
-       [S_COB_INSIDE_L] = { 5, 0, 4, 1, 0, 1 }, /* 0 */
+       [S_COB_INSIDE_R] = { 5, 0, 4, 1, 0, 1 }, /* 0 */
        [S_CAP2] =      { 10, 0, 3, 7, 0, 0 }, /* 1 */
-       [S_COB_INSIDE_R] = { 5, 0, 4, 1, 0, 0 }, /* 2 */
+       [S_COB_INSIDE_L] = { 5, 0, 4, 1, 0, 0 }, /* 2 */
        [S_CAP4] =      { 1, 0, 0, 1, 0, 0 }, /* 3 */
        [S_LCOB] =      { 1, 0, 0, 1, 0, 1 }, /* 4 */
-       [S_LEFT] =      { 5, 0, 4, 1, 0, 0 }, /* 5 */ /////// not used
-       [S_RIGHT] =     { 5, 0, 4, 1, 0, 1 }, /* 6 */ /////// not used
+       [S_CAP6] =      { 5, 0, 4, 1, 0, 0 }, /* 5 */
+       [S_CAP7] =      { 5, 0, 4, 1, 0, 1 }, /* 6 */
        [S_RCOB] =      { 1, 0, 0, 1, 0, 1 }, /* 7 */
        [S_RESERVED1] = { 10, 0, 3, 7, 0, 0 }, /* 8 */
        [S_RESERVED2] = { 10, 0, 3, 7, 0, 0 }, /* 9 */