this code is completely restructured, but should do the same thing. did not want to directly commit, since it may not work at all. compiles though.

Dependencies:   AVEncoder mbed-src-AV

Fork of Test by 2015-2016_Mouserat

Revision:
13:5f08195456a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pinouts.cpp	Tue Dec 15 08:56:36 2015 +0000
@@ -0,0 +1,39 @@
+#include "mouse.h"
+#include "pinouts.h"
+
+#include "AVEncoder.h"
+#include "mbed.h"
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+PwmOut right_forward(PB_10);
+PwmOut right_reverse(PA_6);
+PwmOut left_forward(PA_7);
+PwmOut left_reverse(PB_6);
+
+// TODO: change our encoder pins from AnalogIn into:
+// otherwise, we can also use the AVEncoder thing as well.  
+AVEncoder l_enco(PA_15, PB_3);
+AVEncoder r_enco(PA_1, PA_10);
+
+// gyro
+AnalogIn _gyro(PA_0);
+// AnalogIn gyro_cal(PC_1) ?? currently this isn't connected. 
+
+//Left Front IR
+DigitalOut eLF(PC_3);
+AnalogIn rLF(PC_0);
+                                                    //PC_4 is an ADC
+//Left Side IR
+DigitalOut eLS(PC_2);
+AnalogIn rLS(PC_1);
+
+//Right Side IR
+DigitalOut eRS(PC_12);
+AnalogIn rRS(PA_4);
+
+//Right Front IR
+DigitalOut eRF(PC_15);
+AnalogIn rRF(PB_0);
+
+DigitalOut myled(LED1);