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

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

bugfix writing IEPC torque limits

parent 5c4470a6
No related branches found
No related tags found
No related merge requests found
......@@ -154,10 +154,10 @@ public class JSONFileWriter : IOutputFileWriter
var currentGear = new Dictionary<string, object> {
{ JsonKeys.Gearbox_Gear_Ratio, gear.Ratio }
};
if(gear.MaxOutputShaftSpeed != null)
if(gear.MaxOutputShaftTorque != null)
currentGear.Add(JsonKeys.Gearbox_Gear_MaxOutShaftTorque, gear.MaxOutputShaftTorque.Value());
if(gear.MaxOutputShaftSpeed != null)
currentGear.Add(JsonKeys.Gearbox_Gear_MaxOutShaftSpeed, gear.MaxOutputShaftSpeed.Value());
currentGear.Add(JsonKeys.Gearbox_Gear_MaxOutShaftSpeed, gear.MaxOutputShaftSpeed.AsRPM);
gears.Add(currentGear);
}
......
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