feat: Begins pressure estimation feature tests.
This commit is contained in:
@@ -36,7 +36,6 @@ public struct SharedPressureEstimationState: Equatable, Sendable {
|
||||
set { equipmentMetadata[keyPath: keyPath] = newValue }
|
||||
}
|
||||
|
||||
#warning("Needs to hold onto estimation state, so it can be editable")
|
||||
@dynamicMemberLookup
|
||||
public struct FlaggedEstimationContainer: Equatable, Identifiable, Sendable {
|
||||
public let id: UUID
|
||||
@@ -92,6 +91,11 @@ public struct SharedPressureEstimationState: Equatable, Sendable {
|
||||
return name
|
||||
}
|
||||
|
||||
// Compare relevant values on if two states have changes.
|
||||
func hasChanges(_ other: Self) -> Bool {
|
||||
cfm != other.cfm || filterPressureDrop != other.filterPressureDrop
|
||||
}
|
||||
|
||||
public enum CFMContainer: Equatable, Sendable {
|
||||
case cfm(Int)
|
||||
case cfmPerTon(Int, EquipmentMetadata.CoolingCapacity)
|
||||
|
||||
Reference in New Issue
Block a user