Publish 0.002 with a setup lookup, a name-only car, and the deeper car setup.

This commit is contained in:
RallyBlock committed 2026-10-22 23:10:06 -07:00
1 parent ffad275e13
commit ecd5c286dd
15 files changed
+478 -165

No files matched your search

@@ -200,6 +200,13 @@ private fun sheetJson(sheet: SetupSheet) = JSONObject()
.putNullable("blockRr", sheet.blockRr)
.putNullable("toeFront", sheet.toeFront)
.putNullable("toeRear", sheet.toeRear)
.putNullable("weightLf", sheet.weightLf)
.putNullable("weightRf", sheet.weightRf)
.putNullable("weightLr", sheet.weightLr)
.putNullable("weightRr", sheet.weightRr)
.putNullable("rideHeight", sheet.rideHeight)
.putNullable("pinion", sheet.pinion)
.putNullable("brakeFront", sheet.brakeFront)
private fun sheetFrom(json: JSONObject) = SetupSheet(
recordedAt = json.optLong("recordedAt"),
@@ -218,6 +225,13 @@ private fun sheetFrom(json: JSONObject) = SetupSheet(
blockRr = json.optionalDouble("blockRr"),
toeFront = json.optionalDouble("toeFront"),
toeRear = json.optionalDouble("toeRear"),
weightLf = json.optionalInt("weightLf"),
weightRf = json.optionalInt("weightRf"),
weightLr = json.optionalInt("weightLr"),
weightRr = json.optionalInt("weightRr"),
rideHeight = json.optionalDouble("rideHeight"),
pinion = json.optionalDouble("pinion"),
brakeFront = json.optionalDouble("brakeFront"),
syncId = json.optString("syncId"),
updatedAt = json.optLong("updatedAt"),
deleted = json.optBoolean("deleted"),