Prototyping the Adaptable Emergency System on an C027 board.
Dependencies: C027_Support mbed
Fork of c027_prototyping by
Diff: main.cpp
- Revision:
- 7:eeef6f9fa1db
- Parent:
- 4:f1708f6ec905
- Child:
- 11:5354c4819b25
- Child:
- 13:3c1f0b8c1d21
--- a/main.cpp Tue Sep 30 16:06:35 2014 +0000 +++ b/main.cpp Tue Sep 30 17:57:38 2014 +0000 @@ -1,8 +1,11 @@ #include "mbed.h" -#include "sms_lib.h" +#include "gps_locate.h" int main() { - printf("Hello"); - init_sms_features(); + printf("Hello here is the position: "); + struct gps_data_t gps_data; + gps_locate(&gps_data); + printf("https://maps.google.com/?q=%.5f,%.5f\n", gps_data.la, gps_data.lo); + printf("End"); return 0; }