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.
Fork of dgps by
Diff: packet.h
- Revision:
- 15:e3e03a9df89e
- Parent:
- 14:6be57da62283
- Child:
- 16:4f5d20b87dc3
--- a/packet.h Thu Apr 10 02:19:07 2014 +0000 +++ b/packet.h Thu Apr 10 05:38:45 2014 +0000 @@ -5,12 +5,16 @@ // Packet 2. (SuperPackid=5,type=PT_DEFAULT,size=1024) // Packet 3. (SuperPackid=5,type=PT_DEFAULT,size=1000) // Packet 4. (SuperPackid=5,type=PT_END,size=0) -//#define XBEEON +#define XBEEON enum PACKET_TYPE{ PT_EMPTY=0, PT_DEFAULT, PT_END, PT_IMAGE, + PT_IMAGEHEAD, + PT_REQLOC, + PT_SENDLOC, + PT_WAY, PT_SIZE }; typedef struct PacketStruct{ @@ -38,7 +42,7 @@ for(int a=0;a<sizeof(PacketStruct);a++){ while(!outputDevice.writeable()){} outputDevice.putc(((char*)(&output))[a]); - //wait_ms(10); + //wait_us(10); //USB::getSerial().putc(((char*)(&output))[a]); } //wait_ms(100);