mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(versioning): expose app version in UI and custom build ID in Backpack patch
This commit is contained in:
1 parent
88cf8c73e7
commit
8dbc4297ed
4 files changed
+17
-8
No files matched your search
@@ -35,23 +35,25 @@ index 26b4013..77dd0fa 100644
|
||||
#if defined(TARGET_TX_BACKPACK)
|
||||
bool SendTxBackpackTelemetryViaUDP(const uint8_t *data, uint16_t size)
|
||||
{
|
||||
@@ -577,6 +603,7 @@ static void WebMAVLinkHandler(AsyncWebServerRequest *request)
|
||||
@@ -577,6 +603,8 @@ static void WebMAVLinkHandler(AsyncWebServerRequest *request)
|
||||
json["counters"]["packets_up"] = stats->packets_uplink;
|
||||
json["counters"]["drops_down"] = stats->drops_downlink;
|
||||
json["counters"]["overflows_down"] = stats->overflows_downlink;
|
||||
+ json["counters"]["ptr_packets"] = ptrPacketsCount;
|
||||
+ json["custom_build"] = "steamframe-1.5.9-udp-msp-ptr-b2";
|
||||
json["ports"]["listen"] = config.GetMavlinkListenPort();
|
||||
json["ports"]["send"] = config.GetMavlinkSendPort();
|
||||
if (gcsIPSet) {
|
||||
@@ -792,6 +819,7 @@ static void startServices()
|
||||
@@ -792,6 +820,8 @@ static void startServices()
|
||||
#if defined(MAVLINK_ENABLED)
|
||||
mavlinkUDP.begin(config.GetMavlinkListenPort());
|
||||
#endif
|
||||
+ ptrUDP.begin(14550);
|
||||
+ DBGLN("SteamFrame custom build: steamframe-1.5.9-udp-msp-ptr-b2 (UDP :14550/:14555)");
|
||||
|
||||
servicesStarted = true;
|
||||
DBGLN("HTTPUpdateServer ready! Open http://%s.local in your browser", myHostname);
|
||||
@@ -923,7 +951,7 @@ static void HandleWebUpdate()
|
||||
@@ -923,7 +953,7 @@ static void HandleWebUpdate()
|
||||
last_mavlink_to_gcs_dump = millis();
|
||||
}
|
||||
|
||||
@@ -60,7 +62,7 @@ index 26b4013..77dd0fa 100644
|
||||
if (wifiService == WIFI_SERVICE_MAVLINK_TX)
|
||||
{
|
||||
uint16_t packetSize = mavlinkUDP.parsePacket();
|
||||
@@ -932,13 +960,28 @@ static void HandleWebUpdate()
|
||||
@@ -932,13 +962,28 @@ static void HandleWebUpdate()
|
||||
gcsIP = mavlinkUDP.remoteIP(); // store the IP of the GCS so we can send to it directly
|
||||
gcsIPSet = true;
|
||||
uint8_t buf[MAVLINK_MAX_PACKET_LEN];
|
||||
|
||||
Reference in new issue
Block a user