diff --git a/dashpilot-ios/dashpilot/Models/CarState.swift b/dashpilot-ios/dashpilot/Models/CarState.swift index e090b5e..388a3f6 100644 --- a/dashpilot-ios/dashpilot/Models/CarState.swift +++ b/dashpilot-ios/dashpilot/Models/CarState.swift @@ -197,6 +197,18 @@ struct CarState: Codable { selfdriveActive = try c.decodeIfPresent(Bool.self, forKey: .selfdriveActive) ?? false experimentalMode = try c.decodeIfPresent(Bool.self, forKey: .experimentalMode) ?? false changingLane = try c.decodeIfPresent(Bool.self, forKey: .changingLane) ?? false + tpmsPressureFL = try c.decodeIfPresent(Float.self, forKey: .tpmsPressureFL) ?? -1 + tpmsPressureFR = try c.decodeIfPresent(Float.self, forKey: .tpmsPressureFR) ?? -1 + tpmsPressureRL = try c.decodeIfPresent(Float.self, forKey: .tpmsPressureRL) ?? -1 + tpmsPressureRR = try c.decodeIfPresent(Float.self, forKey: .tpmsPressureRR) ?? -1 + tpmsTempFL = try c.decodeIfPresent(Float.self, forKey: .tpmsTempFL) ?? -100 + tpmsTempFR = try c.decodeIfPresent(Float.self, forKey: .tpmsTempFR) ?? -100 + tpmsTempRL = try c.decodeIfPresent(Float.self, forKey: .tpmsTempRL) ?? -100 + tpmsTempRR = try c.decodeIfPresent(Float.self, forKey: .tpmsTempRR) ?? -100 + tpmsBattFL = try c.decodeIfPresent(Float.self, forKey: .tpmsBattFL) ?? -1 + tpmsBattFR = try c.decodeIfPresent(Float.self, forKey: .tpmsBattFR) ?? -1 + tpmsBattRL = try c.decodeIfPresent(Float.self, forKey: .tpmsBattRL) ?? -1 + tpmsBattRR = try c.decodeIfPresent(Float.self, forKey: .tpmsBattRR) ?? -1 doorOpenFL = try c.decodeIfPresent(Float.self, forKey: .doorOpenFL) ?? 0 doorOpenFR = try c.decodeIfPresent(Float.self, forKey: .doorOpenFR) ?? 0 doorOpenRL = try c.decodeIfPresent(Float.self, forKey: .doorOpenRL) ?? 0