Revert "App: Rerouting"

This commit is contained in:
afischerdev 2024-03-08 12:16:13 +01:00 committed by GitHub
parent 1a0b38d375
commit b9b629185a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 76 deletions

View file

@ -105,28 +105,13 @@ public class BRouter {
if (engineMode == RoutingEngine.BROUTER_ENGINEMODE_GETELEV) {
re = new RoutingEngine("testinfo", null, new File(args[0]), wplist, rc, engineMode);
} else {
rc.rawTrackPath = "testtrack.raw";
re = new RoutingEngine("testtrack", null, new File(args[0]), wplist, rc, engineMode);
}
re.doRun(0);
if (engineMode == RoutingEngine.BROUTER_ENGINEMODE_ROUTING ||
engineMode == RoutingEngine.BROUTER_ENGINEMODE_PREPARE_REROUTE) {
// store new reference track if any
// (can exist for timed-out search)
if (re.getFoundRawTrack() != null) {
try {
re.getFoundRawTrack().writeBinary(rc.rawTrackPath);
} catch (Exception e) {
e.printStackTrace();
}
}
}
} catch (Exception e) {
System.out.println(e.getMessage());
}
}