An application to log WiFi SSIDs for position lookup testing
Dependencies: C027_Support SWO mbed-rtos mbed picojson
Fork of lpc4088_ebb_ublox_Cellular_PubNubDemo_rtos by
measurement/LocationUpdate.cpp
- Committer:
- rosterloh84
- Date:
- 2015-02-15
- Revision:
- 1:cac9b2960637
File content as of revision 1:cac9b2960637:
#include "LocationUpdate.h" LocationUpdate::LocationUpdate(GPSTracker& gpsTracker) : _gpsTracker(gpsTracker) { _init = false; } bool LocationUpdate::init() { if (_init) return false; _init = true; return true; } bool LocationUpdate::run() { GPSTracker::Position position; if (!_gpsTracker.position(&position)) { puts("No GPS data available."); return true; } puts("Starting measurement sending."); float altitude = position.altitude; float latitude = position.latitude; float longitude = position.longitude; printf("Lat: %9.7f Long: %9.7f Altitude %.2f", latitude, longitude, altitude); return true; }