47 lines
2.1 KiB
C#
47 lines
2.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace DTS.Slice.PedestrianAndHeadReports
|
|||
|
|
{
|
|||
|
|
public class LWRLegARSReport : ReportBase
|
|||
|
|
{
|
|||
|
|
public LWRLegARSReport(PedestrianAndHeadTest parent) : base(parent) { }
|
|||
|
|
|
|||
|
|
public override ReportTypes GetReportType()
|
|||
|
|
{
|
|||
|
|
return ReportTypes.LWRLegARS;
|
|||
|
|
}
|
|||
|
|
public const string XAxialChannelId = "ARSXAxial";
|
|||
|
|
public const string YAxialChannelId = "ARSYAxial";
|
|||
|
|
public const string ZAxialChannelId = "ARSZAxial";
|
|||
|
|
public const string XAccelerationId = "ARSXAccel";
|
|||
|
|
protected override void InitializeGraphs()
|
|||
|
|
{
|
|||
|
|
base.InitializeGraphs();
|
|||
|
|
AddGraph(new ReportGraph(KnownGraphs.ARS_ARS.ToString(), "Angular rate sensor", new MeasurementUnit []
|
|||
|
|
{MeasurementUnitList.GetMeasurementUnit("deg/sec")}
|
|||
|
|
, new GraphChannel[]{
|
|||
|
|
new GraphChannel(XAxialChannelId, "X Axial", "ARSXAxial"),
|
|||
|
|
new GraphChannel(YAxialChannelId, "Y Axial", "ARSYAxial"),
|
|||
|
|
new GraphChannel(ZAxialChannelId, "Z Axial", "ARSZAxial")
|
|||
|
|
}, Properties.Settings.Default.PROTECTIONREPORT_ARSAxialThreshold));
|
|||
|
|
AddGraph(new ReportGraph(KnownGraphs.ARS_Acceleration.ToString(), "X Acceleration",
|
|||
|
|
new MeasurementUnit []
|
|||
|
|
{
|
|||
|
|
MeasurementUnitList.GetMeasurementUnit("G"), MeasurementUnitList.GetMeasurementUnit("m/sec^2")
|
|||
|
|
}, new GraphChannel[] {
|
|||
|
|
new GraphChannel(XAccelerationId, "acceleration", "ARSXAccel")
|
|||
|
|
}, Properties.Settings.Default.PROTECTIONREPORT_ARSACCELThreshold));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void InitializeProperties()
|
|||
|
|
{
|
|||
|
|
base.InitializeProperties();
|
|||
|
|
SetValue(PedestrianAndHeadTest.Fields.FrequencyClass.ToString(), (new SensorDB.FilterClass(DTS.SensorDB.FilterClass.FilterClassType.CFC180)).ToString());
|
|||
|
|
SetPossibleValues(PedestrianAndHeadTest.Fields.ImpactorType.ToString(), new string[] { "ARS" });
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|