-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GNSS receiver resilience information
Add GNSS signal authentication and interference indicators to the user interface and get the required data from MAVLink.
- Loading branch information
1 parent
7614a91
commit a5377f6
Showing
15 changed files
with
222 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/**************************************************************************** | ||
* | ||
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> | ||
* | ||
* QGroundControl is licensed according to the terms in the file | ||
* COPYING.md in the root of the source code directory. | ||
* | ||
****************************************************************************/ | ||
|
||
import QtQuick | ||
import QtQuick.Layouts | ||
|
||
import QGroundControl | ||
import QGroundControl.Controls | ||
import QGroundControl.ScreenTools | ||
import QGroundControl.Palette | ||
|
||
//------------------------------------------------------------------------- | ||
//-- GPS Authentication Indicator | ||
Item { | ||
id: control | ||
width: height | ||
anchors.top: parent.top | ||
anchors.bottom: parent.bottom | ||
|
||
property bool showIndicator: _activeVehicle.gps.authenticationState.value !== 0 | ||
|
||
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle | ||
|
||
function authenticationIconColor() { | ||
if (_activeVehicle.gps.authenticationState.value === 0) { | ||
return qgcPal.colorGrey | ||
} else if (_activeVehicle.gps.authenticationState.value === 1) { | ||
return qgcPal.colorYellow | ||
} else if (_activeVehicle.gps.authenticationState.value === 2) { | ||
return qgcPal.colorRed | ||
} else if (_activeVehicle.gps.authenticationState.value === 3) { | ||
return qgcPal.colorGreen | ||
} else if (_activeVehicle.gps.authenticationState.value === 4) { | ||
return qgcPal.colorGrey | ||
} | ||
} | ||
|
||
QGCColoredImage { | ||
id: gpsAuthenticationIcon | ||
width: height | ||
anchors.top: parent.top | ||
anchors.bottom: parent.bottom | ||
source: "/qmlimages/GpsAuthentication.svg" | ||
fillMode: Image.PreserveAspectFit | ||
sourceSize.height: height | ||
opacity: 1 | ||
color: authenticationIconColor() | ||
} | ||
|
||
MouseArea { | ||
anchors.fill: parent | ||
onClicked: mainWindow.showIndicatorDrawer(gpsIndicatorPage, control) | ||
} | ||
|
||
Component { | ||
id: gpsIndicatorPage | ||
|
||
GPSIndicatorPage { | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/**************************************************************************** | ||
* | ||
* (c) 2009-2024 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> | ||
* | ||
* QGroundControl is licensed according to the terms in the file | ||
* COPYING.md in the root of the source code directory. | ||
* | ||
****************************************************************************/ | ||
|
||
import QtQuick | ||
import QtQuick.Layouts | ||
|
||
import QGroundControl | ||
import QGroundControl.Controls | ||
import QGroundControl.ScreenTools | ||
import QGroundControl.Palette | ||
|
||
//------------------------------------------------------------------------- | ||
//-- GPS Interference Indicator | ||
Item { | ||
id: control | ||
width: height | ||
anchors.top: parent.top | ||
anchors.bottom: parent.bottom | ||
|
||
property bool showIndicator: _activeVehicle.gps.authenticationState.value !== 0 | ||
|
||
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle | ||
|
||
function interferenceIconColor() { | ||
if (_activeVehicle.gps.spoofingState.value === 1) { | ||
return qgcPal.colorGreen | ||
} else if (_activeVehicle.gps.spoofingState.value === 2) { | ||
return qgcPal.colorRed | ||
} else if (_activeVehicle.gps.spoofingState.value === 3) { | ||
return qgcPal.colorBlue | ||
} | ||
} | ||
|
||
QGCColoredImage { | ||
id: gpsSpoofingIcon | ||
width: height | ||
anchors.top: parent.top | ||
anchors.bottom: parent.bottom | ||
source: "/qmlimages/GpsInterference.svg" | ||
fillMode: Image.PreserveAspectFit | ||
sourceSize.height: height | ||
opacity: 1 | ||
color: interferenceIconColor() | ||
} | ||
|
||
MouseArea { | ||
anchors.fill: parent | ||
onClicked: mainWindow.showIndicatorDrawer(gpsIndicatorPage, control) | ||
} | ||
|
||
Component { | ||
id: gpsIndicatorPage | ||
|
||
GPSIndicatorPage { | ||
|
||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.