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

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

consider boosting limitations: boosting limitations dictionary did not set the...

consider boosting limitations: boosting limitations dictionary did not set the locked-TC flag, so lookup with the current gear yields no result
parent f8651c7b
No related branches found
No related tags found
No related merge requests found
...@@ -1127,7 +1127,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter ...@@ -1127,7 +1127,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
FullDriveTorque = gearboxData.Gears[key].MaxTorque FullDriveTorque = gearboxData.Gears[key].MaxTorque
} }
}.ToList(); }.ToList();
retVal[new GearshiftPosition(key)] = new VehicleMaxPropulsionTorque(gbxLimit); retVal[new GearshiftPosition(key, true)] = new VehicleMaxPropulsionTorque(gbxLimit);
continue; continue;
} }
...@@ -1159,7 +1159,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter ...@@ -1159,7 +1159,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
// if no gearbox limit is defined, MaxTorque is null; // if no gearbox limit is defined, MaxTorque is null;
// in case of P3 or P4, do not apply gearbox limit to propulsion limit as ICE is already cropped with max torque // in case of P3 or P4, do not apply gearbox limit to propulsion limit as ICE is already cropped with max torque
var gearboxTorqueLimit = isP3OrP4Hybrid ? null : gearboxData.Gears[key].MaxTorque; var gearboxTorqueLimit = isP3OrP4Hybrid ? null : gearboxData.Gears[key].MaxTorque;
retVal[new GearshiftPosition(key)] = new VehicleMaxPropulsionTorque(IntersectMaxPropulsionTorqueCurve(entries, gearboxTorqueLimit)); retVal[new GearshiftPosition(key, true)] = new VehicleMaxPropulsionTorque(IntersectMaxPropulsionTorqueCurve(entries, gearboxTorqueLimit));
} }
......
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