Bチーム / Mbed 2 deprecated 4wd_omni_simple2

Dependencies:   mbed MultiSerial

Files at this revision

API Documentation at this revision

Comitter:
Hatter
Date:
Mon Sep 01 02:06:55 2014 +0000
Parent:
6:26e5a520472d
Child:
8:ee465babfd98
Commit message:
typo

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Sep 01 02:05:19 2014 +0000
+++ b/main.cpp	Mon Sep 01 02:06:55 2014 +0000
@@ -48,7 +48,8 @@
     xbee_packet *pt_packet=&packet;
 
     xbee.read(get_data,XBEE_KEY);
-
+    armMbed.write(pt_packet->arm,ARM_KEY);
+    
     for(;;){
  //       xbee.baud(1200);
         
@@ -59,8 +60,6 @@
         if(packet.leg&0x20) motors = 0x0A; //p22,p24 
         if(packet.leg&0x40) motors = 0x50; //p25,p27        
         if(packet.leg&0x80) motors = 0xA0; //p26,p28
-
-        armMbed.write(pt_packet->arm,ARM_KEY);
         
 //        val = armMbed.write(slave_addr,pt_packet->arm,1);  
 //        if(!val) i2c_check = 1; else i2c_check = 0;