File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change 22
22
property bool gcsControlStatusFlags_TakeoverAllowed: activeVehicle ? activeVehicle .gcsControlStatusFlags_TakeoverAllowed : false
23
23
property Fact requestControlAllowTakeoverFact: QGroundControl .settingsManager .flyViewSettings .requestControlAllowTakeover
24
24
property bool requestControlAllowTakeover: requestControlAllowTakeoverFact .rawValue
25
- property bool isThisGCSinControl: sysidInControl == QGroundControl .mavlinkSystemID
25
+ property bool isThisGCSinControl: sysidInControl == QGroundControl .settingsManager . mavlinkSettings . gcsMavlinkSystemID . rawValue
26
26
property bool sendControlRequestAllowed: activeVehicle ? activeVehicle .sendControlRequestAllowed : false
27
27
28
28
property var margins: ScreenTools .defaultFontPixelWidth
@@ -322,24 +322,12 @@ Item {
322
322
color: qgcPal .windowShade
323
323
height: outdoorPalette ? 1 : 2
324
324
}
325
- QGCLabel {
326
- text: qsTr (" This GCS Mavlink System ID: " )
327
- }
328
- QGCTextField {
329
- text: QGroundControl .mavlinkSystemID .toString ()
330
- numericValuesOnly: true
331
- Layout .alignment : Qt .AlignRight
332
- Layout .preferredWidth : ScreenTools .defaultFontPixelWidth * 7
333
- horizontalAlignment: TextInput .AlignHCenter
334
- onEditingFinished: {
335
- if (parseInt (text) > 0 && parseInt (text) < 256 ) {
336
- QGroundControl .mavlinkSystemID = parseInt (text)
337
- } else {
338
- mainWindow .showMessageDialog (qsTr (" Invalid System ID" ), qsTr (" System ID must be in the range of 1 - 255" ))
339
- }
340
- }
325
+ LabelledFactTextField {
326
+ Layout .fillWidth : true
327
+ Layout .columnSpan : 2
328
+ label: qsTr (" This GCS Mavlink System ID: " )
329
+ fact: QGroundControl .settingsManager .mavlinkSettings .gcsMavlinkSystemID
341
330
}
342
-
343
331
}
344
332
}
345
333
}
You can’t perform that action at this time.
0 commit comments