Sooner Competitive Robotics / Mbed 2 deprecated IEEE_14_Freescale

Dependencies:   mbed

Fork of IEEE_14_Freescale by IEEE 2014 Mbed

Revision:
9:aff48e331147
Parent:
8:c23cd84befa2
Child:
10:926f142f16a3
--- a/robot.cpp	Fri Nov 22 21:28:52 2013 +0000
+++ b/robot.cpp	Mon Feb 03 20:37:35 2014 +0000
@@ -6,7 +6,7 @@
 //this is the main place pinouts are put
 //also sets up the control system constants
 robot::robot() : spi(PTD2, PTD3, PTD1), bigenc(spi,PTD0), gyro(PTE0, PTE1),
-            right(bigenc,0,1,PTA5), left(bigenc,2,3,PTA4){
+            right(bigenc,0,1,PTA5), left(bigenc,2,3,PTA4), motors(spi,PTD0) {
     
     bigenc.setDirections(1,-1,1,1);
     left.setReversed(1);