Update: 2026-06-11 13:47:39
This commit is contained in:
@@ -481,12 +481,14 @@ class NavigationController extends GetxController
|
||||
}
|
||||
|
||||
bool _isProcessing = false;
|
||||
Future<void> handleLocationUpdateFromCentral(LatLng newLoc, double locSpeed, double locHeading) async {
|
||||
Future<void> handleLocationUpdateFromCentral(
|
||||
LatLng newLoc, double locSpeed, double locHeading) async {
|
||||
if (_isProcessing) return;
|
||||
_isProcessing = true;
|
||||
|
||||
try {
|
||||
currentSpeed = locSpeed; // Convert m/s to km/h already done by location controller if needed, wait location_controller sends raw speed or km/h? It sends raw speed. So we should * 3.6
|
||||
currentSpeed =
|
||||
locSpeed; // Convert m/s to km/h already done by location controller if needed, wait location_controller sends raw speed or km/h? It sends raw speed. So we should * 3.6
|
||||
currentSpeed = locSpeed * 3.6;
|
||||
|
||||
// Skip if movement is too small
|
||||
@@ -1158,7 +1160,7 @@ class NavigationController extends GetxController
|
||||
_lastTraveledIndexInFullRoute = 0;
|
||||
currentInstruction = "";
|
||||
nextInstruction = "";
|
||||
currentManeuverModifier = "intaleq";
|
||||
currentManeuverModifier = "siro";
|
||||
distanceToNextStep = "";
|
||||
totalDistanceRemaining = "";
|
||||
estimatedTimeRemaining = "";
|
||||
|
||||
Reference in New Issue
Block a user