apply changes to navigation.cpp
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user