Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Revision:
30:11f4316a5ba7
Parent:
29:ec2c5a69acd6
Child:
31:9b71b44e0867
--- a/main.h	Wed May 24 01:57:01 2017 +0000
+++ b/main.h	Wed May 24 02:40:36 2017 +0000
@@ -28,10 +28,10 @@
 DigitalOut greenLed(PC_2);
 
 // IRPairs
-IRPair IRP_4( PB_1, PC_5 );
-IRPair IRP_3( PB_13, PC_4 );
-IRPair IRP_2( PB_0, PA_6 );
-IRPair IRP_1( PB_14, PA_7 );
+IRPair IRP_4( PB_13, PC_4 );         // swapped 4 and 3 here so that we do not have to flip it everywhere else
+IRPair IRP_3( PB_1, PC_5);
+IRPair IRP_2( PB_14, PA_7 );         // swapped 2 and 1 here so we do not have to flip it everywhere else!
+IRPair IRP_1( PB_0, PA_6 );
 
 Motor left_motor( PB_8, PB_7, PB_4 ); // forward, backwards, enable
 Motor right_motor( PA_11, PA_10, PB_5 ); // forward, backwards, enable