Unstable experimental version of the Mbed interface

Fork of Sumo_v2 by Luiz Fernando Nobre

Committer:
lfsantarelli
Date:
Sat Apr 13 01:00:26 2013 +0000
Revision:
0:b59cb9ef5b5b
Child:
1:b11f1623539d
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lfsantarelli 0:b59cb9ef5b5b 1 //Pino de Entrada do Switch
lfsantarelli 0:b59cb9ef5b5b 2 #define pswitch p24
lfsantarelli 0:b59cb9ef5b5b 3
lfsantarelli 0:b59cb9ef5b5b 4 //Pinos das saidas analogicas para SaberTooth
lfsantarelli 0:b59cb9ef5b5b 5 #define psaber1 p26
lfsantarelli 0:b59cb9ef5b5b 6 #define psaber2 p25
lfsantarelli 0:b59cb9ef5b5b 7
lfsantarelli 0:b59cb9ef5b5b 8 //Pinos dos sensores de linha
lfsantarelli 0:b59cb9ef5b5b 9 #define plFL p29
lfsantarelli 0:b59cb9ef5b5b 10 #define plFR p30
lfsantarelli 0:b59cb9ef5b5b 11 #define plRL p28
lfsantarelli 0:b59cb9ef5b5b 12 #define plRR p27
lfsantarelli 0:b59cb9ef5b5b 13
lfsantarelli 0:b59cb9ef5b5b 14 //Pinos dos sensores de distancia
lfsantarelli 0:b59cb9ef5b5b 15 #define pd1 p20
lfsantarelli 0:b59cb9ef5b5b 16 #define pd2 p19
lfsantarelli 0:b59cb9ef5b5b 17 #define pd3 p18
lfsantarelli 0:b59cb9ef5b5b 18 #define pd4 p17
lfsantarelli 0:b59cb9ef5b5b 19 #define pd5 p16
lfsantarelli 0:b59cb9ef5b5b 20
lfsantarelli 0:b59cb9ef5b5b 21 //Comunicacao serial
lfsantarelli 0:b59cb9ef5b5b 22 Serial pc(USBTX,USBRX);
lfsantarelli 0:b59cb9ef5b5b 23
lfsantarelli 0:b59cb9ef5b5b 24 //Saida dos LEDs
lfsantarelli 0:b59cb9ef5b5b 25 DigitalOut led1(LED1);
lfsantarelli 0:b59cb9ef5b5b 26 DigitalOut led2(LED2);
lfsantarelli 0:b59cb9ef5b5b 27 DigitalOut led3(LED3);
lfsantarelli 0:b59cb9ef5b5b 28 DigitalOut led4(LED4);
lfsantarelli 0:b59cb9ef5b5b 29
lfsantarelli 0:b59cb9ef5b5b 30 //Entrada do Switch
lfsantarelli 0:b59cb9ef5b5b 31 DigitalIn sSWITCH(pswitch);
lfsantarelli 0:b59cb9ef5b5b 32
lfsantarelli 0:b59cb9ef5b5b 33 //Entradas dos sensores de linha
lfsantarelli 0:b59cb9ef5b5b 34 DigitalIn slFL(plFL);
lfsantarelli 0:b59cb9ef5b5b 35 DigitalIn slFR(plFR);
lfsantarelli 0:b59cb9ef5b5b 36 DigitalIn slRL(plRL);
lfsantarelli 0:b59cb9ef5b5b 37 DigitalIn slRR(plRR);
lfsantarelli 0:b59cb9ef5b5b 38
lfsantarelli 0:b59cb9ef5b5b 39 //Entradas dos sensores de distancia
lfsantarelli 0:b59cb9ef5b5b 40 DigitalIn sd1(pd1);
lfsantarelli 0:b59cb9ef5b5b 41 DigitalIn sd2(pd2);
lfsantarelli 0:b59cb9ef5b5b 42 DigitalIn sd3(pd3);
lfsantarelli 0:b59cb9ef5b5b 43 DigitalIn sd4(pd4);
lfsantarelli 0:b59cb9ef5b5b 44 DigitalIn sd5(pd5);
lfsantarelli 0:b59cb9ef5b5b 45
lfsantarelli 0:b59cb9ef5b5b 46 //Saidas analogicas para SaberTooth
lfsantarelli 0:b59cb9ef5b5b 47 PwmOut saber1(psaber1);
lfsantarelli 0:b59cb9ef5b5b 48 PwmOut saber2(psaber2);
lfsantarelli 0:b59cb9ef5b5b 49
lfsantarelli 0:b59cb9ef5b5b 50 //Entrada de radio
lfsantarelli 0:b59cb9ef5b5b 51 RadioIn radio;