Skip to content

Commit

Permalink
Sensors/GPS: Set invalid GPS position when reading position failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
xBogas committed Sep 23, 2024
1 parent ddde83d commit 240160c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Sensors/GPS/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,10 @@ namespace Sensors
}
else
{
m_fix.lat = 0;
m_fix.lon = 0;
m_fix.height = 0;
m_fix.satellites = 0;
m_fix.validity &= ~IMC::GpsFix::GFV_VALID_POS;
}

Expand Down

0 comments on commit 240160c

Please sign in to comment.