Prototyping the Adaptable Emergency System on an C027 board.

Dependencies:   C027_Support mbed

Fork of c027_prototyping by Philémon Favrod

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers gps_locate.h Source File

gps_locate.h

00001 #ifndef __GPS_LOCATE_H__
00002 #define __GPS_LOCATE_H__
00003 
00004 struct gps_data_t {
00005     double la;
00006     double lo;
00007     double altitude;
00008     double speed;
00009 };
00010 
00011 /*
00012     Get GPS Location, blocks until received
00013     all informations needed, Timeout after timeout seconds
00014     
00015     returns: 1 if gps infos are correct, 0 otherwise
00016 */
00017 int gps_locate(struct gps_data_t* gps_data, int timeout);
00018 
00019 #endif