QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ESP8266ComponentSummary.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3
4import QGroundControl
5import QGroundControl.FactControls
6import QGroundControl.Controls
7
8Item {
9 anchors.fill: parent
10
11 FactPanelController { id: controller; }
12
13 ESP8266ComponentController {
14 id: esp8266
15 }
16
17 property Fact debugEnabled: controller.getParameterFact(esp8266.componentID, "DEBUG_ENABLED")
18 property Fact wifiChannel: controller.getParameterFact(esp8266.componentID, "WIFI_CHANNEL")
19 property Fact wifiHostPort: controller.getParameterFact(esp8266.componentID, "WIFI_UDP_HPORT")
20 property Fact wifiClientPort: controller.getParameterFact(esp8266.componentID, "WIFI_UDP_CPORT")
21 property Fact uartBaud: controller.getParameterFact(esp8266.componentID, "UART_BAUDRATE")
22 property Fact wifiMode: controller.getParameterFact(esp8266.componentID, "WIFI_MODE", false) //-- Don't bitch if missing
23
24 Column {
25 anchors.fill: parent
26 VehicleSummaryRow {
27 labelText: qsTr("Firmware Version")
28 valueText: esp8266.version
29 }
30 VehicleSummaryRow {
31 labelText: qsTr("WiFi Mode")
32 valueText: wifiMode ? (wifiMode.value === 0 ? qsTr("AP Mode") : qsTr("Station Mode")) : qsTr("AP Mode")
33 }
34 VehicleSummaryRow {
35 labelText: qsTr("WiFi Channel")
36 valueText: wifiChannel ? wifiChannel.valueString : ""
37 visible: wifiMode ? wifiMode.value === 0 : true
38 }
39 VehicleSummaryRow {
40 labelText: qsTr("WiFi AP SSID")
41 valueText: esp8266.wifiSSID
42 }
43 VehicleSummaryRow {
44 labelText: qsTr("WiFi AP Password")
45 valueText: esp8266.wifiPassword
46 }
47 /* Too much info makes it all crammed
48 VehicleSummaryRow {
49 labelText: qsTr("WiFi STA SSID")
50 valueText: esp8266.wifiSSIDSta
51 }
52 VehicleSummaryRow {
53 labelText: qsTr("WiFi STA Password")
54 valueText: esp8266.wifiPasswordSta
55 }
56 */
57 VehicleSummaryRow {
58 labelText: qsTr("UART Baud Rate")
59 valueText: uartBaud ? uartBaud.valueString : ""
60 }
61 }
62}