Versao que rodou durante a competicao
Dependencies: RadioIn Servo mbed
Fork of Sumo_v2_Unstable by
Diff: Config.h
- Revision:
- 0:b59cb9ef5b5b
- Child:
- 1:b11f1623539d
diff -r 000000000000 -r b59cb9ef5b5b Config.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Config.h Sat Apr 13 01:00:26 2013 +0000 @@ -0,0 +1,51 @@ +//Pino de Entrada do Switch +#define pswitch p24 + +//Pinos das saidas analogicas para SaberTooth +#define psaber1 p26 +#define psaber2 p25 + +//Pinos dos sensores de linha +#define plFL p29 +#define plFR p30 +#define plRL p28 +#define plRR p27 + +//Pinos dos sensores de distancia +#define pd1 p20 +#define pd2 p19 +#define pd3 p18 +#define pd4 p17 +#define pd5 p16 + +//Comunicacao serial +Serial pc(USBTX,USBRX); + +//Saida dos LEDs +DigitalOut led1(LED1); +DigitalOut led2(LED2); +DigitalOut led3(LED3); +DigitalOut led4(LED4); + +//Entrada do Switch +DigitalIn sSWITCH(pswitch); + +//Entradas dos sensores de linha +DigitalIn slFL(plFL); +DigitalIn slFR(plFR); +DigitalIn slRL(plRL); +DigitalIn slRR(plRR); + +//Entradas dos sensores de distancia +DigitalIn sd1(pd1); +DigitalIn sd2(pd2); +DigitalIn sd3(pd3); +DigitalIn sd4(pd4); +DigitalIn sd5(pd5); + +//Saidas analogicas para SaberTooth +PwmOut saber1(psaber1); +PwmOut saber2(psaber2); + +//Entrada de radio +RadioIn radio; \ No newline at end of file