From c248db6e42a4628726ddb03d173a6300eada72d3 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Mon, 27 Jun 2022 15:16:11 +0200 Subject: [PATCH] bugfix writing IEPC torque limits --- VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs index d74e5936b0..d72c196e6f 100644 --- a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs +++ b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs @@ -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); } -- GitLab