feat: Begins pressure estimation feature tests.

This commit is contained in:
2024-06-13 11:36:22 -04:00
parent 81494c1e9a
commit eb0253077b
13 changed files with 857 additions and 23 deletions

View File

@@ -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)