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 28b489c8 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

PWheel Cycle: Init with WheelAngularVelocity instead of EngineVelocity

parent 39671d9f
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,15 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
}
public override IResponse Initialize()
{
var first = Data.Entries[0];
AbsTime = first.Time;
var response = NextComponent.Initialize(first.Torque, first.WheelAngularVelocity);
response.AbsTime = AbsTime;
return response;
}
public override IResponse Request(Second absTime, Second dt)
{
if (RightSample.Current == null) {
......
......@@ -75,6 +75,15 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
AbsTime = 0.SI<Second>();
}
public virtual IResponse Initialize()
{
var first = Data.Entries[0];
AbsTime = first.Time;
var response = NextComponent.Initialize(first.Torque, first.AngularVelocity);
response.AbsTime = AbsTime;
return response;
}
#region ISimulationOutPort
public IResponse Request(Second absTime, Meter ds)
......@@ -144,16 +153,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
return response;
}
public IResponse Initialize()
{
var first = Data.Entries.First();
AbsTime = first.Time;
var response = NextComponent.Initialize(first.Torque, first.AngularVelocity);
response.AbsTime = AbsTime;
return response;
}
public string CycleName
{
get { return Data.Name; }
......
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