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

Skip to content
Snippets Groups Projects
Commit d86d7f17 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

buffix in calculation of drivetrain volume length

parent a138eb3d
No related branches found
No related tags found
No related merge requests found
......@@ -336,7 +336,7 @@ namespace TUGraz.VectoCore.Models.Declaration
public static Meter CorrectionLengthDrivetrainVolume(VehicleCode? vehicleCode, bool? lowEntry, int numAxles, bool articulated)
{
if ((vehicleCode == VehicleCode.CE || vehicleCode == VehicleCode.CG) && !(bool)lowEntry) {
if ((vehicleCode == VehicleCode.CE || vehicleCode == VehicleCode.CG) && (bool)lowEntry) {
switch (numAxles) {
case 2: return 1.0.SI<Meter>();
case 3: return articulated ? 1.0.SI<Meter>() : 1.25.SI<Meter>();
......
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