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

View File

@@ -0,0 +1,38 @@
namespace DTS.Common.Constant
{
public static class DigitalInputs
{
/// <summary>
/// magic number from CPB
/// a transition across 19005 flips the bit
/// UPDATE:
/// Currently the plan for the DIM thresholds is:
///1. Voltage input: 19661 (1.5V with sig- grounded)
///2. Contact Closure: 19005 (stays the same as what it used to be)
///VoltageInput should be used for digital modes THL and TLH
/// </summary>
public const double ConstantCurrentBreakPointDefault = 19005D;
public const double VoltageInputBreakPointDefault = 19661D;
/// <summary>
/// the default value for whether to display SLICE PRO Digital ADC or not
/// </summary>
public const bool DisplaySPDADCDefault = false;
/// <summary>
/// the current constant current break point
/// does not query value from storage, only holds value static and relies on value being set separately
/// </summary>
public static double ConstantCurrentBreakPoint { get; set; } = ConstantCurrentBreakPointDefault;
/// <summary>
/// the voltage input break point
/// does not query value from storage, only holds value static and relies on value being set separately
/// </summary>
public static double VoltageInputBreakPoint { get; set; } = VoltageInputBreakPointDefault;
/// <summary>
/// controls whether to display SLICE Pro Digital analog ADC
/// does not query value from storage, only holds value static and relies on value being set separately
/// </summary>
public static bool DisplaySPDADC { get; set; } = DisplaySPDADCDefault;
}
}