[android] Improve AA route simulator.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2025-09-20 20:22:45 -03:00
committed by x7z4w
parent 9912d19302
commit e73c37a5dd
7 changed files with 60 additions and 11 deletions

View File

@@ -104,7 +104,11 @@ public class NavigationScreen extends BaseMapScreen implements RoutingController
public void onAutoDriveEnabled()
{
Logger.i(TAG);
final JunctionInfo[] points = Framework.nativeGetRouteJunctionPoints();
/// @todo Pass maxDistM from RouteSimulationProvider?
/// Result speed between points will be in range (25, 50] km/h (for 1 second update interval).
final double kMaxDistM = 13.9; // 13.9 m/s == 50 km/h
final JunctionInfo[] points = Framework.nativeGetRouteJunctionPoints(kMaxDistM);
if (points == null)
{
Logger.e(TAG, "Navigation has not started yet");