gps: adapt ui-new and the sensor managers
This commit is contained in:
1 parent
a0c5854b59
commit
5303703750
9 files changed
+53
-18
No files matched your search
@@ -58,7 +58,7 @@ void ThinkNodeM1SensorManager::loop() {
|
||||
_location->loop();
|
||||
|
||||
if (millis() > next_gps_update) {
|
||||
if (_location->isEnabled() && _location->isValid()) {
|
||||
if (_location->isGpsOn() && _location->hasValidFix()) {
|
||||
node_lat = ((double)_location->getLatitude())/1000000.;
|
||||
node_lon = ((double)_location->getLongitude())/1000000.;
|
||||
node_altitude = ((double)_location->getAltitude()) / 1000.0;
|
||||
|
||||
Reference in new issue
Block a user