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

make reduced mass of wheels available on databus (needed for estimating acceleration / coasting)

parent ef04c23b
No related branches found
No related tags found
No related merge requests found
using TUGraz.VectoCommon.Utils;
namespace TUGraz.VectoCore.Models.Simulation.DataBus
{
public interface IWheelsInfo
{
Kilogram ReducedMassWheels { get; }
}
}
\ No newline at end of file
......@@ -360,5 +360,10 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
{
return Axlegear.AxlegearLoss();
}
public Kilogram ReducedMassWheels
{
get { return Wheels.ReducedMassWheels; }
}
}
}
\ No newline at end of file
......@@ -30,11 +30,12 @@
*/
using TUGraz.VectoCore.Models.Connector.Ports;
using TUGraz.VectoCore.Models.Simulation.DataBus;
namespace TUGraz.VectoCore.Models.SimulationComponent
{
/// <summary>
/// Defines interfaces for a wheels component.
/// </summary>
public interface IWheels : IFvOutProvider, ITnInProvider {}
public interface IWheels : IFvOutProvider, ITnInProvider, IWheelsInfo {}
}
\ No newline at end of file
......@@ -135,5 +135,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public NewtonMeter TorqueIn;
public NewtonMeter InertiaTorqueLoss;
}
public Kilogram ReducedMassWheels
{
get { return (_totalWheelsInertia / _dynamicWheelRadius / _dynamicWheelRadius).Cast<Kilogram>(); }
}
}
}
\ No newline at end of file
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