@ -42,6 +42,9 @@ Rectangle {
@@ -42,6 +42,9 @@ Rectangle {
/ / F l a g t o g e t a c t i v e v e h i c l e a n d a c t i v e R I D
property var _activeRID : _activeVehicle && _activeVehicle . remoteIDManager ? _activeVehicle . remoteIDManager : null
/ / H e a l t h y c o n n e c t i o n w i t h R I D d e v i c e
property bool commsGood: _activeVehicle && _activeVehicle . remoteIDManager ? _activeVehicle . remoteIDManager.commsGood : false
/ / G e n e r a l p r o p e r t i e s
property var _activeVehicle : QGroundControl . multiVehicleManager . activeVehicle
property int _regionOperation : QGroundControl . settingsManager . remoteIDSettings . region . value
@ -151,6 +154,7 @@ Rectangle {
@@ -151,6 +154,7 @@ Rectangle {
Layout.preferredWidth: flagsWidth
color: _activeRID ? ( _activeVehicle . remoteIDManager . armStatusGood ? qgcPal.colorGreen : qgcPal . colorRed ) : qgcPal . colorGrey
radius: radiusFlags
visible: commsGood
QGCLabel {
anchors.fill: parent
@ -178,7 +182,7 @@ Rectangle {
@@ -178,7 +182,7 @@ Rectangle {
QGCLabel {
anchors.fill: parent
text: qsTr ( "RID COMMS" )
text: _activeRID && _activeVehicle . remoteIDManager . commsGood ? qsTr ( "RID COMMS" ) : qsTr ( "NOT CONNECTED " )
wrapMode: Text . WordWrap
horizontalAlignment: Text . AlignHCenter
verticalAlignment: Text . AlignVCenter
@ -192,6 +196,7 @@ Rectangle {
@@ -192,6 +196,7 @@ Rectangle {
Layout.preferredWidth: flagsWidth
color: _activeRID ? ( _activeVehicle . remoteIDManager . gcsGPSGood ? qgcPal.colorGreen : qgcPal . colorRed ) : qgcPal . colorGrey
radius: radiusFlags
visible: commsGood
QGCLabel {
anchors.fill: parent
@ -215,6 +220,7 @@ Rectangle {
@@ -215,6 +220,7 @@ Rectangle {
Layout.preferredWidth: flagsWidth
color: _activeRID ? ( _activeVehicle . remoteIDManager . basicIDGood ? qgcPal.colorGreen : qgcPal . colorRed ) : qgcPal . colorGrey
radius: radiusFlags
visible: commsGood
QGCLabel {
anchors.fill: parent
@ -238,7 +244,7 @@ Rectangle {
@@ -238,7 +244,7 @@ Rectangle {
Layout.preferredWidth: flagsWidth
color: _activeRID ? ( _activeVehicle . remoteIDManager . operatorIDGood ? qgcPal.colorGreen : qgcPal . colorRed ) : qgcPal . colorGrey
radius: radiusFlags
visible: _activeRID ? ( QGroundControl . settingsManager . remoteIDSettings . sendOperatorID . value || _regionOperation == RemoteIDSettings . RegionOperation . EU ) : false
visible: commsGood && _activeRID ? ( QGroundControl . settingsManager . remoteIDSettings . sendOperatorID . value || _regionOperation == RemoteIDSettings . RegionOperation . EU ) : false
QGCLabel {
anchors.fill: parent