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

busaux adapter: if in TC gear and drivetrain torque is positive (although...

busaux adapter: if in TC gear and drivetrain torque is positive (although braking) then do not allow smart aux
parent 5b2e0fc2
Branches
Tags
No related merge requests found
......@@ -343,6 +343,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
CurrentState.ExcessiveDragPower = drivetrainPower -
(DataBus.EngineInfo.EngineDragPower(avgAngularSpeed) - preExistingAuxPower) - DataBus.Brakes.BrakePower;
}
if (!dryRun && DataBus.DriverInfo.DrivingAction == DrivingAction.Brake && torquePowerTrain.IsGreater(0) &&
DataBus.GearboxInfo.Gear.TorqueConverterLocked.HasValue &&
!DataBus.GearboxInfo.Gear.TorqueConverterLocked.Value) {
CurrentState.ExcessiveDragPower = 0.SI<Watt>();
}
if (!dryRun && DataBus.DriverInfo.DrivingAction != DrivingAction.Brake) {
CurrentState.ExcessiveDragPower = 0.SI<Watt>();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment