calc Azimuth finished

This commit is contained in:
2023-08-09 15:34:03 +02:00
parent cf111426bd
commit 98f3cb93f0
6 changed files with 7 additions and 13 deletions
+2
View File
@@ -126,6 +126,7 @@ void Navigation::drivingDirectionChange() {
if (tmp.isInit() && tmp.isValid()) {
this->directionChangeMode = true;
this->lastPointDrivingDirectionChange = tmp;
this->calcAzimuthState = CalcAzimuthState::Invalid;
}
}
@@ -200,6 +201,7 @@ void Navigation::updateMagneticDeclination() {
|| this->lastPointDrivingDirectionChange.distanceTo(this->currentPosition) < 1.0)
{
this->calcAzimuthState = CalcAzimuthState::Invalid;
this->calcAzimuth = 999;
return;
}