micrmouse

Dependencies:   AVEncoder mbed-src-AV

Committer:
ajboddu
Date:
Fri Mar 18 07:42:11 2016 +0000
Revision:
0:394261695392
micromouse;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ajboddu 0:394261695392 1 #include "mbed.h"
ajboddu 0:394261695392 2 #include "AVEncoder.h"
ajboddu 0:394261695392 3 //SENSORS
ajboddu 0:394261695392 4 //IR EMMITER/DETECTOR PAIRS
ajboddu 0:394261695392 5 DigitalOut IRledLS(PC_5);
ajboddu 0:394261695392 6 AnalogIn IRSensorLS(PC_3);
ajboddu 0:394261695392 7
ajboddu 0:394261695392 8 DigitalOut IRledLA(PB_12);
ajboddu 0:394261695392 9 AnalogIn IRSensorLA(PA_6);
ajboddu 0:394261695392 10
ajboddu 0:394261695392 11 DigitalOut IRledRA(PB_15);
ajboddu 0:394261695392 12 AnalogIn IRSensorRA(PC_4);
ajboddu 0:394261695392 13
ajboddu 0:394261695392 14 DigitalOut IRledRS(PB_13);
ajboddu 0:394261695392 15 AnalogIn IRSensorRS(PA_3);
ajboddu 0:394261695392 16
ajboddu 0:394261695392 17 //ENCODERS
ajboddu 0:394261695392 18 AVEncoder RENC (PA_1, PA_2);
ajboddu 0:394261695392 19 AVEncoder LENC (PA_15, PB_3);
ajboddu 0:394261695392 20
ajboddu 0:394261695392 21 //GYRO
ajboddu 0:394261695392 22 AnalogIn Zout(PC_2);
ajboddu 0:394261695392 23
ajboddu 0:394261695392 24
ajboddu 0:394261695392 25 //MOTOR
ajboddu 0:394261695392 26 PwmOut RMOTORB(PA_7);
ajboddu 0:394261695392 27 PwmOut RMOTORA(PB_6);
ajboddu 0:394261695392 28 PwmOut LMOTORA(PB_10);
ajboddu 0:394261695392 29 PwmOut LMOTORB(PB_5);