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->ubxData = Navigation::ubxDataStatic;
this->ubxUpdateTime = Navigation::ubxUpdateTimeStatic; this->ubxUpdateTime = Navigation::ubxUpdateTimeStatic;
Point p; Point::Coordinates coords;
p.lon = this->ubxData->lon; coords.lat = this->ubxData->lat / 10000000.0;
p.lat = this->ubxData->lat; coords.lon = this->ubxData->lon / 10000000.0;
this->currentPosition = p; this->currentPosition = Point(coords, this->ubxData->hAcc);
} }
bool Navigation::nextPoint() { bool Navigation::nextPoint() {