Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit d6cabe04 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix: use total weight for acceleration calculation

parent a7aef1c9
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var accelerationPower = maxEnginePower - gearboxLoss - axleLoss - airDragLoss - rollResistanceLoss - slopeLoss;
var acceleration = accelerationPower / DataBus.VehicleSpeed / (DataBus.VehicleMass + DataBus.ReducedMassWheels);
var acceleration = accelerationPower / DataBus.VehicleSpeed / (DataBus.TotalMass + DataBus.ReducedMassWheels);
return acceleration.Cast<MeterPerSquareSecond>();
}
......
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