From caa918bce1f3b19ef33d9ef6824de714d89ca0c0 Mon Sep 17 00:00:00 2001 From: Jack Rubacha Date: Sat, 21 Dec 2024 16:39:35 -0500 Subject: [PATCH] add to mpu the versioning --- cangen/can-messages/mpu.json | 100 +++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/cangen/can-messages/mpu.json b/cangen/can-messages/mpu.json index 67fa5e2..97e6a92 100644 --- a/cangen/can-messages/mpu.json +++ b/cangen/can-messages/mpu.json @@ -932,5 +932,105 @@ ] } ] + }, + { + "id": "0x698", + "desc": "Cerberus Version Tag", + "sim_freq": 1000, + "fields": [ + { + "name": "MPU/Version/Tag", + "unit": "major.minor.patch", + "sim": { + "min": 0, + "max": 3, + "inc_min": 1, + "inc_max": 1, + "round": true + }, + "points": [ + { + "size": 8 + }, + { + "size": 8 + }, + { + "size": 8 + } + ] + }, + { + "name": "MPU/Version/Dirty", + "unit": "bool", + "sim": { + "options": [ + [ + 0, + 0.95 + ], + [ + 1, + 0.05 + ] + ] + }, + "points": [ + { + "size": 8 + } + ] + }, + { + "name": "MPU/Version/LocalCommit", + "unit": "bool", + "sim": { + "options": [ + [ + 0, + 0.95 + ], + [ + 1, + 0.06 + ] + ] + }, + "points": [ + { + "size": 8 + } + ] + } + ] + }, + { + "id": "0x699", + "desc": "Cerberus Version Hash", + "sim_freq": 1000, + "fields": [ + { + "name": "MPU/Version/ShortHash", + "unit": "hash", + "sim": { + "min": 0000, + "max": 4294967295, + "inc_min": 1, + "inc_max": 1, + "round": true + } + }, + { + "name": "MPU/Version/AuthorHash", + "unit": "hash", + "sim": { + "min": 0000, + "max": 4294967295, + "inc_min": 1, + "inc_max": 1, + "round": true + } + } + ] } ]