Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MultiSerial
Revision 7:07863c4a74b8, committed 2014-09-01
- 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;