Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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
Branches
Tags
No related merge requests found
...@@ -154,10 +154,10 @@ public class JSONFileWriter : IOutputFileWriter ...@@ -154,10 +154,10 @@ public class JSONFileWriter : IOutputFileWriter
var currentGear = new Dictionary<string, object> { var currentGear = new Dictionary<string, object> {
{ JsonKeys.Gearbox_Gear_Ratio, gear.Ratio } { JsonKeys.Gearbox_Gear_Ratio, gear.Ratio }
}; };
if(gear.MaxOutputShaftSpeed != null) if(gear.MaxOutputShaftTorque != null)
currentGear.Add(JsonKeys.Gearbox_Gear_MaxOutShaftTorque, gear.MaxOutputShaftTorque.Value()); currentGear.Add(JsonKeys.Gearbox_Gear_MaxOutShaftTorque, gear.MaxOutputShaftTorque.Value());
if(gear.MaxOutputShaftSpeed != null) 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); gears.Add(currentGear);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment