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

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

reset braking power before next iteration of requests

parent 3c7fbc1d
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
using System;
using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Configuration;
using TUGraz.VectoCore.Models.Connector.Ports;
using TUGraz.VectoCore.Models.Connector.Ports.Impl;
......@@ -53,6 +54,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
var loopCount = 0;
IResponse response;
do {
Container.BrakePower = 0.SI<Watt>();
response = CyclePort.Request(AbsTime, ds);
response.Switch().
Case<ResponseSuccess>(r => { dt = r.SimulationInterval; }).
......
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