From 5c4470a6bcea8b7495709be9a19e187ef1d9afeb Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Mon, 27 Jun 2022 15:15:42 +0200 Subject: [PATCH] set further fields in response in APTN gearbox required to initialize gearbox --- .../Models/SimulationComponent/Impl/APTNGearbox.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/APTNGearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/APTNGearbox.cs index cbff4a8327..fd345f22f0 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/APTNGearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/APTNGearbox.cs @@ -77,7 +77,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl Gear = oldGear; return new ResponseDryRun(this, response) { ElectricMotor = { PowerRequest = response.ElectricMotor.PowerRequest }, - Gearbox = { PowerRequest = outTorque * outAngularVelocity }, + Gearbox = { + PowerRequest = outTorque * outAngularVelocity, + InputSpeed = inAngularVelocity, + InputTorque = inTorque, + OutputTorque = outTorque, + OutputSpeed = outAngularVelocity, + }, DeltaFullLoad = response.ElectricMotor.PowerRequest - fullLoad }; } -- GitLab