add cayennelpp gps packing

pull/22/head
Kent Wiliams 2020-05-19 10:33:53 -07:00
rodzic edd9a26a35
commit 5e4c7a90a1
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -301,6 +301,9 @@ void readGPS() {
ledState = !ledState;
digitalWrite(LED_BUILTIN, ledState);
// Clear Payload
lpp.reset();
// Output GPS information from previous second
Serial.print("Valid fix: ");
Serial.println(nmea.isValid() ? "yes" : "no");
@ -345,12 +348,15 @@ void readGPS() {
else
Serial.println("not available");
lpp.addGPS(1, latitude_mdeg, longitude_mdeg, alt);
Serial.print("Speed: ");
Serial.println(nmea.getSpeed() / 1000., 3);
Serial.print("Course: ");
Serial.println(nmea.getCourse() / 1000., 3);
Serial.println("-----------------------");
nmea.clear();
}
else
{