2019-06-12 19:18:37 +00:00
|
|
|
#include <Arduino.h>
|
2019-06-13 13:13:03 +00:00
|
|
|
#include <TinyGPS++.h>
|
2019-06-12 19:18:37 +00:00
|
|
|
|
|
|
|
#include "settings.h"
|
|
|
|
#include "gps.h"
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
Serial.begin(BAUD_PC);
|
|
|
|
|
|
|
|
gps_begin();
|
2019-06-13 13:13:03 +00:00
|
|
|
TinyGPSLocation loc = get_location();
|
|
|
|
gps_end();
|
|
|
|
|
|
|
|
Serial.print("[main] Location: ("); Serial.print(loc.longitude()); Serial.print(", "); Serial.print(loc.latitude()); Serial.println();
|
2019-06-12 19:18:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void loop() {
|
|
|
|
|
|
|
|
}
|