2015/08/14

Dependencies:   VNH5019

Dependents:   Cansat_program4_1

Fork of cansat by Mami Yokokawa

Files at this revision

API Documentation at this revision

Comitter:
s1200058
Date:
Wed Aug 12 12:49:17 2015 +0000
Parent:
8:bc3365988ee1
Child:
10:e40f6ad7dab3
Commit message:
change cansat.cpp;

Changed in this revision

cansat.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/cansat.cpp	Wed Aug 12 12:10:26 2015 +0000
+++ b/cansat.cpp	Wed Aug 12 12:49:17 2015 +0000
@@ -14,23 +14,18 @@
 
         if(flag == 0){
             _agzSheild.changeSpeed(1, speed, 1, speed); //straight
-            motor_command = 'f';
         }
         if(flag == 1){
             _agzSheild.changeSpeed(0, speed, 0, speed); 
-            motor_command = 's';
         }
         if(flag == 2){
              _agzSheild.changeSpeed(1, speed, 0, speed); //Turn Right
-            motor_command = 'r';
         }           
         if(flag == 3){
              _agzSheild.changeSpeed(0, speed, 1, speed); //Turn Right
-            motor_command = 'l';
         }   
         if(flag == 4){
             _agzSheild.changeSpeed(2, speed, 2, speed); 
-            motor_command = 'b';
         }
 }