1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

LP-536 Missed a few 3D conditions in uav.js

This commit is contained in:
Jan NIJS 2017-06-25 16:36:31 +02:00
parent 12062a5c7d
commit 9d6175e68e

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 The LibrePilot Project
* Copyright (C) 2016-2017 The LibrePilot Project
* Contact: http://www.librepilot.org
*
* This file is part of LibrePilot GCS.
@ -117,6 +117,7 @@ function position() {
switch(gpsPositionSensor.status) {
case GPSPositionSensor.Status.Fix2D:
case GPSPositionSensor.Status.Fix3D:
case GPSPositionSensor.Status.Fix3DDGNSS:
return gpsPosition();
case GPSPositionSensor.Status.NoFix:
case GPSPositionSensor.Status.NoGPS:
@ -222,7 +223,7 @@ function isGpsNotInitialised() {
}
function isGpsStatusFix3D() {
return (gpsPositionSensor.status == GPSPositionSensor.Status.Fix3D);
return ((gpsPositionSensor.status == GPSPositionSensor.Status.Fix3D) || (gpsPositionSensor.status == GPSPositionSensor.Status.Fix3DDGNSS));
}
function isOplmConnected() {