Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 09893050 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

BusAuxiliariesAdapter: Better Error Message if ES supply from REESS is...

BusAuxiliariesAdapter: Better Error Message if ES supply from REESS is activated but no DCDCConverter is installed.
parent 010f1836
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
using System;
using TUGraz.VectoCommon.BusAuxiliaries;
using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Models.BusAuxiliaries;
......@@ -378,6 +379,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var missingEnergy = energyDemand - batEnergy;
if (AuxCfg.ElectricalUserInputsConfig.ConnectESToREESS) {
if (DCDCConverter is null) {
throw new VectoException("DCDCConverter is missing: The current configuration for the bus auxiliaries " +
"requires a DCDCConverter (ES supply from HEV REESS is activated).");
}
DCDCConverter.ConsumerEnergy(-missingEnergy, dryRun);
} else {
if (!dryRun) {
......
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