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

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

fix merge errors

parent 571c7169
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
emTorque = 0.SI<NewtonMeter>();
}
if (Position == PowertrainPosition.HybridP1 && !DataBus.EngineCtl.CombustionEngineOn) {
// electric motor is directly connected to the ICE, ICE is off and EM is off - do not apply drag loss
emTorqueDt = 0.SI<NewtonMeter>();
emTorque = 0.SI<NewtonMeter>();
}
if (ElectricPower == null || emTorqueDt == null) {
// no electric system or EM shall be off - apply drag only
// if EM is off, calculate EM drag torque 'forward' to be applied on drivetrain
......@@ -299,11 +305,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
CurrentState.DriveMax = maxDriveTorqueEmMap;
CurrentState.InertiaTorqueLoss = inertiaTorqueEm;
if (Position == PowertrainPosition.HybridP1 && !DataBus.EngineCtl.CombustionEngineOn) {
// electric motor is directly connected to the ICE, ICE is off and EM is off - do not apply drag loss
inTorque = outTorque;
}
CurrentState.DrivetrainSpeed = outAngularVelocity;
CurrentState.DrivetrainInTorque = inTorqueDt;
CurrentState.DrivetrainOutTorque = outTorque;
......
......@@ -124,11 +124,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
(DataBus.ElectricMotorInfo(pos) as ElectricMotor).DeRatingActive;
if (/*nextGear != DataBus.GearboxInfo.Gear && */TestPowertrain.ElectricMotorP2 != null) {
TestPowertrain.ElectricMotorP2.PreviousState.OutAngularVelocity =
TestPowertrain.ElectricMotorP2.PreviousState.EMSpeed =
DataBus.ElectricMotorInfo(PowertrainPosition.HybridP2).ElectricMotorSpeed;
}
if (/*nextGear != DataBus.GearboxInfo.Gear && */TestPowertrain.ElectricMotorP3 != null) {
TestPowertrain.ElectricMotorP3.PreviousState.OutAngularVelocity =
TestPowertrain.ElectricMotorP3.PreviousState.EMSpeed =
DataBus.ElectricMotorInfo(PowertrainPosition.HybridP3).ElectricMotorSpeed;
}
......@@ -233,11 +233,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
(DataBus.ElectricMotorInfo(pos) as ElectricMotor).DeRatingActive;
if (/*nextGear != DataBus.GearboxInfo.Gear && */TestPowertrain.ElectricMotorP2 != null) {
TestPowertrain.ElectricMotorP2.PreviousState.OutAngularVelocity =
TestPowertrain.ElectricMotorP2.PreviousState.EMSpeed =
DataBus.ElectricMotorInfo(PowertrainPosition.HybridP2).ElectricMotorSpeed;
}
if (/*nextGear != DataBus.GearboxInfo.Gear && */TestPowertrain.ElectricMotorP3 != null) {
TestPowertrain.ElectricMotorP3.PreviousState.OutAngularVelocity =
TestPowertrain.ElectricMotorP3.PreviousState.EMSpeed =
DataBus.ElectricMotorInfo(PowertrainPosition.HybridP3).ElectricMotorSpeed;
}
......
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