VS-Code auto correct bugs
This commit is contained in:
@@ -20,11 +20,10 @@ import '../msp/msp_commands.dart';
|
||||
class MockFlightControllerLink implements FlightControllerLink {
|
||||
MockFlightControllerLink({
|
||||
List<Waypoint> initialWaypoints = const [],
|
||||
int batteryCellCount = 4,
|
||||
this._batteryCellCount = 4,
|
||||
}) : _anchorLat = initialWaypoints.isEmpty ? 52.5 : initialWaypoints.first.lat,
|
||||
_anchorLon = initialWaypoints.isEmpty ? 13.4 : initialWaypoints.first.lon,
|
||||
_activeWaypointIndex = initialWaypoints.isEmpty ? null : 0,
|
||||
_batteryCellCount = batteryCellCount;
|
||||
_activeWaypointIndex = initialWaypoints.isEmpty ? null : 0;
|
||||
|
||||
double _anchorLat;
|
||||
double _anchorLon;
|
||||
|
||||
@@ -34,17 +34,13 @@ class UdpTransport implements LinkTransport {
|
||||
static const _defaultMlrsHost = '192.168.4.55';
|
||||
|
||||
UdpTransport({
|
||||
required Future<String?> Function() getHost,
|
||||
required this._getHost,
|
||||
required Future<int> Function() getPort,
|
||||
required Future<String> Function() getSsidPrefix,
|
||||
required Future<String?> Function() getRememberedSsid,
|
||||
required Future<void> Function(String ssid) rememberSsid,
|
||||
required this._getSsidPrefix,
|
||||
required this._getRememberedSsid,
|
||||
required this._rememberSsid,
|
||||
MlrsNetworkController? networkController,
|
||||
}) : _getHost = getHost,
|
||||
_getPort = getPort,
|
||||
_getSsidPrefix = getSsidPrefix,
|
||||
_getRememberedSsid = getRememberedSsid,
|
||||
_rememberSsid = rememberSsid,
|
||||
}) : _getPort = getPort,
|
||||
_networkController =
|
||||
networkController ?? MethodChannelMlrsNetworkController();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user