Sooner Competitive Robotics / Mbed 2 deprecated IEEE_14_Freescale

Dependencies:   mbed

Fork of IEEE_14_Freescale by IEEE 2014 Mbed

Revision:
47:bedbd8b05657
Parent:
46:faad265d8ce9
--- a/game.cpp	Thu Apr 03 02:50:41 2014 +0000
+++ b/game.cpp	Thu Apr 03 02:54:41 2014 +0000
@@ -323,15 +323,15 @@
 void gamePlayer::approachRig(){
     while(1){ 
         if(rigOnFire == 1){   
-            bot.smoothMove(290*11.625-(column*16),0,40);
+            bot.smoothMove(290*(11.625-(column*16)),0,40);
             bot.smoothMove(290*(3),0,40);
             bot.smoothMove((8000.0/360.0)*(-90),1,40);
         } else if(rigOnFire == 2){
-            bot.smoothMove(290*40-(column*16),0,40);
+            bot.smoothMove(290*(40-(column*16)),0,40);
             bot.smoothMove(290*(3),0,40);
             bot.smoothMove((8000.0/360.0)*(-90),1,40);
         } else if(rigOnFire == 4){
-            bot.smoothMove(290*68.375-(column*16),0,40);
+            bot.smoothMove(290*(68.375-(column*16)),0,40);
             bot.smoothMove(290*(3),0,40);
             bot.smoothMove((8000.0/360.0)*(-90),1,40);    
         }