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: handle/mavcommands.h
- Revision:
- 60:bf851bafc807
- Parent:
- 58:ea73523cf04b
- Child:
- 61:aa32e17f6801
--- a/handle/mavcommands.h Sat Apr 26 21:12:09 2014 +0000 +++ b/handle/mavcommands.h Sat Apr 26 23:01:45 2014 +0000 @@ -62,9 +62,10 @@ } MAV_DATA_STREAM; typedef struct MAV_LOCDATA_S{ - uint32_t alt; - uint32_t lat; - uint32_t lon; + int32_t timestamp; + int32_t lat; + int32_t lon; + int32_t alt; uint16_t x; uint16_t y; uint16_t z; @@ -100,7 +101,7 @@ void setup(){if(!initialized){setupCmds();initialized=true;}} void run(){ setup(); - for(int i=0;i<100;i++){handleNextCmd();wait_ms(10);} + for(int i=0;i<100;i++){readState=0;handleNextCmd();wait_ms(1);} } static MavCmd& get(){if(mavcmd==NULL){mavcmd=new MavCmd();}return *mavcmd;} };