Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dashpilot-ios/dashpilot/Models/CarState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading