Browse Source
Merge pull request #397 from fdlamotte/t1000e_gps_off_position_fix
t1000e: don't update position if gps is off
pull/405/head
ripplebiz
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
variants/t1000-e/target.cpp
|
|
|
@ -174,7 +174,7 @@ void T1000SensorManager::loop() { |
|
|
|
_nmea->loop(); |
|
|
|
|
|
|
|
if (millis() > next_gps_update) { |
|
|
|
if (_nmea->isValid()) { |
|
|
|
if (gps_active && _nmea->isValid()) { |
|
|
|
node_lat = ((double)_nmea->getLatitude())/1000000.; |
|
|
|
node_lon = ((double)_nmea->getLongitude())/1000000.; |
|
|
|
node_altitude = ((double)_nmea->getAltitude()) / 1000.0; |
|
|
|
|