apply changes to navigation.cpp

This commit is contained in:
2022-12-27 13:11:36 +01:00
parent b9840bccf8
commit a4e0007d64
+4 -4
View File
@@ -166,11 +166,11 @@ void Navigation::updateCurrentLocation() {
this->ubxData = Navigation::ubxDataStatic;
this->ubxUpdateTime = Navigation::ubxUpdateTimeStatic;
Point p;
p.lon = this->ubxData->lon;
p.lat = this->ubxData->lat;
Point::Coordinates coords;
coords.lat = this->ubxData->lat / 10000000.0;
coords.lon = this->ubxData->lon / 10000000.0;
this->currentPosition = p;
this->currentPosition = Point(coords, this->ubxData->hAcc);
}
bool Navigation::nextPoint() {