Fix #362 by @a-f-G-U-C - I was mispelling NMEA ;-)

This commit is contained in:
geeksville
2020-09-16 09:22:03 -07:00
parent 8e988cc926
commit fc20f658e6
5 changed files with 16 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
#include "NEMAGPS.h"
#include "NMEAGPS.h"
#include "configuration.h"
#include "timing.h"
@@ -11,7 +11,7 @@ static int32_t toDegInt(RawDegrees d)
return r;
}
void NEMAGPS::loop()
void NMEAGPS::loop()
{
while (_serial_gps->available() > 0) {
int c = _serial_gps->read();
@@ -69,7 +69,7 @@ void NEMAGPS::loop()
}
// expect gps pos lat=37.520825, lon=-122.309162, alt=158
DEBUG_MSG("new NEMA GPS pos lat=%f, lon=%f, alt=%d, hdop=%f, heading=%f\n", latitude * 1e-7, longitude * 1e-7,
DEBUG_MSG("new NMEA GPS pos lat=%f, lon=%f, alt=%d, hdop=%f, heading=%f\n", latitude * 1e-7, longitude * 1e-7,
altitude, dop * 1e-2, heading * 1e-5);
}

View File

@@ -1,19 +1,19 @@
#pragma once
#include "../concurrency/PeriodicTask.h"
#include "GPS.h"
#include "Observer.h"
#include "../concurrency/PeriodicTask.h"
#include "TinyGPS++.h"
/**
* A gps class thatreads from a NEMA GPS stream (and FIXME - eventually keeps the gps powered down except when reading)
* A gps class thatreads from a NMEA GPS stream (and FIXME - eventually keeps the gps powered down except when reading)
*
* When new data is available it will notify observers.
*/
class NEMAGPS : public GPS
class NMEAGPS : public GPS
{
TinyGPSPlus reader;
uint32_t lastUpdateMsec = 0;
public:

View File

@@ -103,7 +103,7 @@ bool UBloxGPS::factoryReset()
{
bool ok = false;
// It is useful to force back into factory defaults (9600baud, NEMA to test the behavior of boards that don't have
// It is useful to force back into factory defaults (9600baud, NMEA to test the behavior of boards that don't have
// GPS_TX connected)
ublox.factoryReset();
delay(5000);