disabled auto connect when switching to fly mode and no disconnect when leavin fly mode, race condition fix for connectionType ( now telemetry not working anymore), UI optimizations: centered speed and alt, zoom to mission uses full screen

This commit is contained in:
Constantin Leue
2026-08-02 21:45:46 +02:00
parent 35c4129eb7
commit 0649ae4507
7 changed files with 94 additions and 66 deletions
@@ -43,6 +43,13 @@ class MspFlightControllerLink implements FlightControllerLink {
@override
Future<void> connect() async {
// Idempotent (Doku flightControllerLinkProvider: "Verbindung bleibt
// ueber Moduswechsel hinweg aktiv") - jeder erneute Eintritt in den
// Fly-Modus ruft connect() erneut auf derselben, weiterhin
// bestehenden Instanz auf; ohne diese Sperre wuerde das einen zweiten
// MspClient/-Poller nebenher starten, der um MSP-Antworten race
// (MSP kennt keine Request-IDs, siehe MspClient-Doku).
if (_poller != null) return;
await transport.connect();
final client = MspClient(transport);
_client = client;