82 lines
2.1 KiB
C#
82 lines
2.1 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace AciTester.Models
|
|
{
|
|
public partial class RealTimeData : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
private float rawFlow; // D1330原始值
|
|
|
|
[ObservableProperty]
|
|
private float calibratedFlow; // 校准后流量
|
|
|
|
[ObservableProperty]
|
|
private float temperature; // D1380
|
|
|
|
[ObservableProperty]
|
|
private float pumpPressure; // D1430
|
|
|
|
[ObservableProperty]
|
|
private float impactorPressure; // D1480
|
|
|
|
[ObservableProperty]
|
|
private float differentialPressure; // 压差 = impactorPressure - pumpPressure
|
|
|
|
|
|
|
|
// 新增
|
|
[ObservableProperty]
|
|
private int acStartupCountdown; // D50
|
|
|
|
|
|
|
|
|
|
// 除霜温度设置 - 最大值 30
|
|
private float _defrostTempSet;
|
|
public float DefrostTempSet
|
|
{
|
|
get => _defrostTempSet;
|
|
set
|
|
{
|
|
if (value > 30) value = 30;
|
|
if (value < 0) value = 0;
|
|
SetProperty(ref _defrostTempSet, value);
|
|
}
|
|
}
|
|
|
|
// 除霜时间设置 - 最大值 180 (秒)
|
|
private int _defrostTimeSet;
|
|
public int DefrostTimeSet
|
|
{
|
|
get => _defrostTimeSet;
|
|
set
|
|
{
|
|
if (value > 180) value = 180;
|
|
if (value < 0) value = 0;
|
|
SetProperty(ref _defrostTimeSet, value);
|
|
}
|
|
} // D302
|
|
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
private int defrostMinute; // D42
|
|
|
|
[ObservableProperty]
|
|
private int defrostSecond; // D40
|
|
|
|
[ObservableProperty]
|
|
private bool constantTempStart; // M4
|
|
|
|
[ObservableProperty]
|
|
private bool defrostStart; // M19
|
|
|
|
[ObservableProperty]
|
|
private bool acLowPressureAlarm; // M1001
|
|
|
|
[ObservableProperty]
|
|
private bool acHighPressureAlarm; // M1002
|
|
}
|
|
} |