namespace MODSensorFile { public class MODSensor { /// /// Sensor Record ID; 3 digit ID code /// public int PhysicalChannel { get; set; } /// /// Name of the sensor /// public string SensorName { get; set; } /// /// Alpha-numeric Serial Number of the sensor /// public string SensorSerial { get; set; } /// /// Polarity - positive polarity = 0, inverse polarity = 1 /// public int SignalReverse { get; set; } /// /// SAE J211 Channel Frequency Class for the sensor /// public int CFCClass { get; set; } /// /// Physical Property? /// public char PhysicalProperty { get; set; } /// /// EU for the sensor /// public string EngineeringUnits { get; set; } /// /// Sensor Sensitivity /// public float Sensibility { get; set; } /// /// Full scale EU range (+/-, for example 1000, means +1000/-1000) /// public float FullScale { get; set; } /// /// Excitation Voltage for the sensor /// public float ExcitationVoltage { get; set; } /// /// Type: 0=full bridge, 1=half bridge, 2=voltage /// public int Type { get; set; } /// /// The Dallas ID for the sensor /// public string ExpectedDallasID { get; set; } /// /// Remove offset (normally half of pretrigger) /// public int RemoveOffset { get; set; } public enum Polarity { Normal = 0, Inverse = 1, } public bool IsInverted() { return SignalReverse == (int)Polarity.Inverse; } public enum SensorType { FullBridge = 0, HalfBridge = 1, Voltage = 2, } public SensorType GetSensorType() { return (SensorType)Type; } public enum OffsetRemoval { None = 0, Remove = 1, } public OffsetRemoval GetOffsetRemoval() { return (OffsetRemoval)RemoveOffset; } } }