Initial commit — RoadCode import

This commit is contained in:
2026-03-08 20:04:49 -05:00
commit 7756eefa02
250 changed files with 24953 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
import Foundation
// MARK: - Shared Data Models (used by both iOS and watchOS)
struct SensorData: Codable {
var temperature: Double
var humidity: Double
var light: Int
var accelX: Double
var accelY: Double
var accelZ: Double
var batteryMV: Int
var uptimeSec: UInt32
}
struct AIStatus: Codable {
var modelID: Int
var confidence: Int
var inferenceMS: Int
var totalInferences: UInt32
var npuLoad: Int
var npuTemp: Int
var classID: Int
}
struct SystemHealth: Codable {
var fleetOnline: Int
var fleetTotal: Int
var agentsActive: Int
var trafficGreen: Int
var trafficYellow: Int
var trafficRed: Int
var tasksPending: Int
var tasksDone: Int
var memoryEntries: UInt32
var reposCount: Int
var cfProjects: Int
var cpuLoad: Double
}