warning banner removed from footer in fly mode

This commit is contained in:
Constantin Leue
2026-08-04 10:20:16 +02:00
parent a66c199b37
commit 66e05f0ffe
4 changed files with 42 additions and 3 deletions
@@ -22,8 +22,8 @@ class MockFlightControllerLink implements FlightControllerLink {
_anchorLon = initialWaypoints.isEmpty ? 13.4 : initialWaypoints.first.lon,
_activeWaypointIndex = initialWaypoints.isEmpty ? null : 0;
final double _anchorLat;
final double _anchorLon;
double _anchorLat;
double _anchorLon;
final _random = math.Random();
bool _armed = false;
@@ -111,6 +111,22 @@ class MockFlightControllerLink implements FlightControllerLink {
_telemetryController = null;
}
/// Setzt die simulierte Position auf den ersten Wegpunkt von [waypoints]
/// zurueck und loescht die bisherige Drift (Doku: "beim Laden einer
/// Mission Mock-Drohnenposition auf ersten Wegpunkt setzen, solange die
/// Drohne nicht verbunden ist") - der Aufrufer (CurrentMissionMetaNotifier)
/// ruft dies nur auf, wenn [FlightControllerLink] tatsaechlich dieser Mock
/// ist, also noch keine echte Verbindung (WLAN/MSP) aktiv ist. Ohne
/// Wegpunkte faellt die Position auf den alten Berlin-Fallback zurueck,
/// analog zum Konstruktor.
void resetPosition(List<Waypoint> waypoints) {
_anchorLat = waypoints.isEmpty ? 52.5 : waypoints.first.lat;
_anchorLon = waypoints.isEmpty ? 13.4 : waypoints.first.lon;
_driftNorthM = 0;
_driftEastM = 0;
_activeWaypointIndex = waypoints.isEmpty ? null : 0;
}
@override
Future<void> uploadMission(FlatWaypointList mission) async {
// iNAV/MAVLink erlauben Mission-Upload nur im unarmed-Zustand (Doku 4.5).