Generation 3 of the Harp project
Dependencies: Servo TMP36 GZ buffered-serial1 chan_fatfs_sd nmea_parser watchdog mbed-rtos mbed
Fork of HARP2 by
Diff: GPS/GPS.h
- Revision:
- 6:204487243310
- Parent:
- 5:8444ec4245e7
--- a/GPS/GPS.h Thu Feb 23 05:40:54 2012 +0000 +++ b/GPS/GPS.h Fri Feb 24 21:28:33 2012 +0000 @@ -34,6 +34,10 @@ float get_speed_k(); float get_speed_km(); int get_satelites(); + float get_altitude_ft(); + + //float calc_course_to(float, float); + //float calc_dist_to(float, float); #ifdef OPEN_LOG void start_log(void); @@ -45,9 +49,11 @@ float nmea_to_dec(float, char); float trunc(float v); void getline(); + void format_for_log(void); Serial _gps; char msg[1024]; + char bfr[1030]; bool is_logging; #ifdef OPEN_LOG Logger _openLog; @@ -55,6 +61,7 @@ // calculated values float dec_longitude; float dec_latitude; + float altitude_ft; // GGA - Global Positioning System Fixed Data float nmea_longitude;