Prototyping the Adaptable Emergency System on an C027 board.
Dependencies: C027_Support mbed
Fork of c027_prototyping by
gps_locate.h@16:2b2f2a3bde5a, 2014-10-01 (annotated)
- Committer:
- aroulin
- Date:
- Wed Oct 01 08:47:54 2014 +0000
- Revision:
- 16:2b2f2a3bde5a
- Parent:
- 7:eeef6f9fa1db
- Child:
- 17:726bbc1b73ee
Adds some timers to timeout GPS test and receive SMS test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aroulin | 3:12e1c2c71cf2 | 1 | #ifndef __GPS_LOCATE_H__ |
aroulin | 3:12e1c2c71cf2 | 2 | #define __GPS_LOCATE_H__ |
aroulin | 3:12e1c2c71cf2 | 3 | |
aroulin | 3:12e1c2c71cf2 | 4 | struct gps_data_t { |
aroulin | 3:12e1c2c71cf2 | 5 | double la; |
aroulin | 3:12e1c2c71cf2 | 6 | double lo; |
aroulin | 3:12e1c2c71cf2 | 7 | double altitude; |
aroulin | 3:12e1c2c71cf2 | 8 | double speed; |
aroulin | 16:2b2f2a3bde5a | 9 | }; |
aroulin | 3:12e1c2c71cf2 | 10 | |
aroulin | 16:2b2f2a3bde5a | 11 | /* |
aroulin | 16:2b2f2a3bde5a | 12 | Get GPS Location, blocks until received |
aroulin | 16:2b2f2a3bde5a | 13 | all informations needed, Timeout after 20 seconds |
aroulin | 16:2b2f2a3bde5a | 14 | |
aroulin | 16:2b2f2a3bde5a | 15 | returns: 1 if gps infos are correct, 0 otherwise |
aroulin | 16:2b2f2a3bde5a | 16 | */ |
aroulin | 4:f1708f6ec905 | 17 | int gps_locate(struct gps_data_t* gps_data); |
aroulin | 3:12e1c2c71cf2 | 18 | |
aroulin | 3:12e1c2c71cf2 | 19 | #endif |