This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

View File

@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace DTS.Common.Converters
{
public class InitialOffsetToIEPESensorOffsetConverter : IValueConverter
{
/// <summary>
/// Used to convert millivolt offset to IEPE sensor offset in volts
/// </summary>
/// <param name="value"></param>
/// <param name="targetType"></param>
/// <param name="parameter"></param>
/// <param name="culture"></param>
/// <returns></returns>
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is double milliUnit)
{
return ConvertDouble(milliUnit);
}
else
{
return 0D;
}
}
const double IEPE_MIDPOINT = 12.25D;
public static double ConvertDouble(double milliUnit)
{
if (double.IsNaN(milliUnit)) { return 0D; }
return (milliUnit / 1000.0D) + IEPE_MIDPOINT;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is double unit)
{
if (double.IsNaN(unit)) { return 0D; }
return (unit - IEPE_MIDPOINT) * 1000.0D;
}
else
{
return 0D;
}
}
}
}

View File

@@ -0,0 +1,29 @@
using DTS.Common.Enums;
namespace DTS.Common.Interface.Sensors
{
/// <summary>
/// this interface describes the default properties and methods for a digital output
/// It's intended to allow interaction with digital output defaults
/// 13574 Design for Default squib config file settings
/// </summary>
public interface IDigitalOutDefaults
{
/// <summary>
/// the default output mode for digital outputs
/// </summary>
DigitalOutputModes OutputMode { get; set; }
/// <summary>
/// the default delay in ms for digital outputs
/// </summary>
double DelayMS { get; set; }
/// <summary>
/// the default for whether to limit output duration or not
/// </summary>
bool LimitDuration { get; set; }
/// <summary>
/// the default duration in ms to limit duration if limiting duration
/// </summary>
double DurationMS { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
using DTS.Common.Interface.DataRecorders;
using Prism.Events;
namespace DTS.Common.Events.TTSImport
{
/// <summary>
/// The EIDMappingEvent event.
/// this event is published whenever we have determined a hardware channel to sensor id mapping
/// </summary>
/// <remarks>
/// published value is a mapping of sensorId to hardwareChannelId
/// </remarks>
public class EIDMappingEvent : PubSubEvent<IDictionary<string, string>> { }
}