Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 0510d915 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

VelocityGearshiftPreprocessor: Throw more useful error message in Preprocessing

parent e46c4386
No related branches found
No related tags found
No related merge requests found
......@@ -105,9 +105,14 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
gearbox.Disengaged = true;
gearbox.EngageTime = 100.SI<Second>();
gearbox._nextGear = gearForSpeed;
var vehicleSpeed = SimulateRollingVehicle(vehicle, gradient, container);
try {
var vehicleSpeed = SimulateRollingVehicle(vehicle, gradient, container);
tmp.Add(new Entry { StartVelocity = speed, Gradient = gradient, EndVelocity = vehicleSpeed });
} catch (Exception e) {
throw new VectoException($"Exception during PreProcessing for gradient {gradient:F2}: {e.Message}", e);
}
modData?.Reset();
tmp.Add(new Entry() { StartVelocity = speed, Gradient = gradient, EndVelocity = vehicleSpeed });
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment