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 f00e9488 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix: combustion engine has to set AuxPowerDemand in response

parent 6c44729c
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
return new ResponseDryRun {
DeltaFullLoad = (CurrentState.EngineTorque - CurrentState.DynamicFullLoadTorque) * avgEngineSpeed,
DeltaDragLoad = (CurrentState.EngineTorque - CurrentState.FullDragTorque) * avgEngineSpeed,
EnginePowerRequest = CurrentState.EngineTorque * avgEngineSpeed
EnginePowerRequest = CurrentState.EngineTorque * avgEngineSpeed,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
};
}
......@@ -220,7 +221,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
AbsTime = absTime,
Delta = delta,
EnginePowerRequest = totalTorqueDemand * avgEngineSpeed,
Source = this
Source = this,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
};
}
......@@ -230,13 +232,17 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
AbsTime = absTime,
Delta = delta,
EnginePowerRequest = totalTorqueDemand * avgEngineSpeed,
Source = this
Source = this,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
};
}
UpdateEngineState(CurrentState.EnginePower, avgEngineSpeed);
return new ResponseSuccess { EnginePowerRequest = totalTorqueDemand * avgEngineSpeed };
return new ResponseSuccess {
EnginePowerRequest = totalTorqueDemand * avgEngineSpeed,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
};
}
public IResponse Initialize(NewtonMeter torque, PerSecond angularSpeed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment