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

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

add new mod-field: driverbehavior

parent 6572597e
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ using System;
using System.Reflection;
using System.Text.RegularExpressions;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Models.Simulation.DataBus;
namespace TUGraz.VectoCore.Models.Simulation.Data
{
......@@ -294,6 +295,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Data
[ModalResultField(typeof(SI), name: "ds [m]")] simulationDistance,
[ModalResultField(typeof(DrivingBehavior))] drivingBehavior,
[ModalResultField(typeof(double), caption: "AA_NonSmartAlternatorsEfficiency [%]")] AA_NonSmartAlternatorsEfficiency,
[ModalResultField(typeof(SI), caption: "AA_SmartIdleCurrent_Amps [A]")] AA_SmartIdleCurrent_Amps,
[ModalResultField(typeof(double), caption: "AA_SmartIdleAlternatorsEfficiency [%]")] AA_SmartIdleAlternatorsEfficiency,
......
......@@ -304,6 +304,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
Log.Info("VehicleContainer committing simulation. time: {0}, dist: {1}, speed: {2}", time,
Distance, VehicleSpeed);
ModData[ModalResultField.drivingBehavior] = DriverBehavior;
foreach (var component in _components) {
component.Item2.CommitSimulationStep(ModData);
}
......
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