diff --git a/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs b/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs index 7cf371289223d3220949c55caac80a09bad39a0a..a05c1eceae693849beeb08f3c0ad564e06d51972 100644 --- a/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs +++ b/VectoCore/VectoCore/InputData/FileIO/JSON/JSONInputData.cs @@ -402,8 +402,8 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON : null; return new LookAheadCoastingInputData() { Enabled = lac.GetEx<bool>(JsonKeys.DriverData_Lookahead_Enabled), - Deceleration = lac.GetEx<double>(JsonKeys.DriverData_Lookahead_Deceleration).SI<MeterPerSquareSecond>(), - MinSpeed = lac.GetEx<double>(JsonKeys.DriverData_Lookahead_MinSpeed).KMPHtoMeterPerSecond(), + //Deceleration = lac.GetEx<double>(JsonKeys.DriverData_Lookahead_Deceleration).SI<MeterPerSquareSecond>(), + //MinSpeed = lac.GetEx<double>(JsonKeys.DriverData_Lookahead_MinSpeed).KMPHtoMeterPerSecond(), LookaheadDistanceFactor = distanceScalingFactor, CoastingDecisionFactorOffset = lacDfOffset, CoastingDecisionFactorScaling = lacDfScaling, diff --git a/VectoCore/VectoCore/InputData/Impl/InputData.cs b/VectoCore/VectoCore/InputData/Impl/InputData.cs index 0810c78ddcc07b7e13b6d764f3de63093b871077..629584d16b30f220eaf1a4dd7bad6ba270ff5476 100644 --- a/VectoCore/VectoCore/InputData/Impl/InputData.cs +++ b/VectoCore/VectoCore/InputData/Impl/InputData.cs @@ -59,9 +59,9 @@ namespace TUGraz.VectoCore.InputData.Impl { public bool Enabled { get; internal set; } - public MeterPerSquareSecond Deceleration { get; internal set; } + //public MeterPerSquareSecond Deceleration { get; internal set; } - public MeterPerSecond MinSpeed { get; internal set; } + //public MeterPerSecond MinSpeed { get; internal set; } public double CoastingDecisionFactorOffset { get; internal set; } public double CoastingDecisionFactorScaling { get; internal set; } diff --git a/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs b/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs index 3aa7a3e484860fbc335842d2793eddde7dca546b..543fdc242902b354887123b362e93ee1f39c0d7b 100644 --- a/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs +++ b/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs @@ -343,7 +343,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Data /// <summary> /// [1/min] Torque converter output speed /// </summary> - [ModalResultField(typeof(SI), "n_TC_out")] TC_angularSpeedOut, + [ModalResultField(typeof(SI), "n_TC_out", outputFactor: 60 / (2 * Math.PI))] TC_angularSpeedOut, /// <summary> /// [Nm] Torque converter output torque @@ -353,7 +353,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Data /// <summary> /// [1/min] Torque converter output speed /// </summary> - [ModalResultField(typeof(SI), "n_TC_in")] TC_angularSpeedIn, + [ModalResultField(typeof(SI), "n_TC_in", outputFactor: 60 / (2 * Math.PI))] TC_angularSpeedIn, /// <summary> /// [m] Altitude diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs index 8c4ef7bf0457b9f54624909d57c82f569e7baf0d..13f4ba20f0e8f152ce4b393c8dc67e7a44e50bd4 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs @@ -265,8 +265,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl protected override void DoWriteModalResults(IModalDataContainer container) { - var avgInAngularSpeed = (PreviousState.OutAngularVelocity + - CurrentState.OutAngularVelocity) / 2.0 * ModelData.Gears[Gear].Ratio; + var avgInAngularSpeed = (PreviousState.InAngularVelocity + + CurrentState.InAngularVelocity) / 2.0; container[ModalResultField.Gear] = Disengaged || DataBus.VehicleStopped ? 0 : Gear; container[ModalResultField.TC_Locked] = TorqueConverterLocked; diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs index cbeb7b2d1ba1ad6fbe2c41455e6d1cf3ff34ecee..de33055ce3846a10a49e95f4a6c2e3c53f7c799b 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs @@ -119,8 +119,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl throw new VectoException("Invalid operating point, inAngularVelocity below engine's idle speed: {0}", operatingPoint.InAngularVelocity); } - if (operatingPoint.InAngularVelocity.IsGreater(ModelData.TorqueConverterSpeedLimit)) { - operatingPoint = ModelData.GetOutTorque(ModelData.TorqueConverterSpeedLimit, outAngularVelocity); + if (operatingPoint.InAngularVelocity.IsGreater(DataBus.EngineRatedSpeed)) { + //ModelData.TorqueConverterSpeedLimit)) { + operatingPoint = ModelData.GetOutTorque(DataBus.EngineRatedSpeed, outAngularVelocity); } return operatingPoint; } catch (VectoException ve) {