using GeneralData;

namespace DBData;

public class DBFormat
{
    public byte ChannelIndex { get; set; }
    public DateTime DateTime { get; set; }

    public float Caps { get; set; }
    public float Floor { get; set; }

    public float CapsWarning { get; set; }
    public float FloorWarning { get; set; }

    public float PV { get; set; }
    public float WorkingOutput { get; set; }
    public AutoTuneStatus AutoTuneStatus { get; set; }

    public float AutoTune_P { get; set; }
    public float AutoTune_I { get; set; }
    public float AutoTune_D { get; set; }

    public TcBorken SensorBreakAlarm { get; set; }

    public float SetPoint { get; set; }

    public ActiveTuneSet ActiveTuneSet { get; set; }

    public float Running_P { get; set; }
    public float Running_I { get; set; }
    public float Running_D { get; set; }

    public Inhibit Inhibit { get; set; }

    public float SetpointUpRate { get; set; }
    public float SetpointDownRate { get; set; }
}

public class DBWarning
{
    public byte ChannelIndex { get; set; }
    public DateTime DateTime { get; set; }
    public AlarmType AlarmType { get; set; }

    public float PV { get; set; }
    public float Caps { get; set; }
    public float Floor { get; set; }
}

public enum AlarmType
{
    OverRange,
    SensorBrake,
}