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