X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fballboard%2Fsensor.h;h=067310d97f19bd3530ccb83224d5e476c1f928f0;hp=c2b18a7f19fa3f597edfb4160ff5051e538a221b;hb=HEAD;hpb=8d6a47e9e21a9a31f4bc12d32fb3d11091a4b305 diff --git a/projects/microb2010/ballboard/sensor.h b/projects/microb2010/ballboard/sensor.h index c2b18a7..067310d 100644 --- a/projects/microb2010/ballboard/sensor.h +++ b/projects/microb2010/ballboard/sensor.h @@ -1,7 +1,7 @@ -/* +/* * Copyright Droids Corporation (2009) * Olivier MATZ - * + * * 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 @@ -28,14 +28,14 @@ #define ADC_MAX 4 /* synchronize with sensor.c */ -#define S_CAP1 0 -#define S_CAP2 1 -#define S_CAP3 2 -#define S_CAP4 3 -#define S_CAP5 4 -#define S_CAP6 5 -#define S_CAP7 6 -#define S_CAP8 7 +#define S_HIGH_BARRIER 0 +#define S_LOW_BARRIER 1 +#define S_CAP3 2 /* TT balise */ +#define S_CAP4 3 /* INTR balise */ +#define S_R_IR 4 +#define S_R_US 5 +#define S_L_US 6 +#define S_L_IR 7 #define S_RESERVED1 8 #define S_RESERVED2 9 #define S_RESERVED3 10 @@ -54,3 +54,6 @@ 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_detect_left(void); +uint8_t cob_detect_right(void);