Skip to content

Commit 1bffad7

Browse files
Pedal telem (#300)
Co-authored-by: Jack Rubacha <rubacha.jack03@gmail.com>
1 parent 99c7895 commit 1bffad7

1 file changed

Lines changed: 51 additions & 2 deletions

File tree

cangen/can-messages/mpu.json

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
},
652652
{
653653
"id": "0x504",
654-
"desc": "MPU Pedals",
654+
"desc": "MPU Pedals Volts",
655655
"points": [
656656
{
657657
"size": 16,
@@ -738,6 +738,55 @@
738738
],
739739
"sim_freq": 100
740740
},
741+
{
742+
"id": "0x505",
743+
"desc": "MPU Normalized Pedals",
744+
"points": [
745+
{
746+
"size": 16,
747+
"formatter": {
748+
"key": "divide",
749+
"arg": 100
750+
},
751+
"sim": {
752+
"min": 0,
753+
"max": 100,
754+
"inc_min": 10,
755+
"inc_max": 10
756+
}
757+
},
758+
{
759+
"size": 16,
760+
"formatter": {
761+
"key": "divide",
762+
"arg": 100
763+
},
764+
"sim": {
765+
"min": 0,
766+
"max": 100,
767+
"inc_min": 10,
768+
"inc_max": 10
769+
}
770+
}
771+
],
772+
"fields": [
773+
{
774+
"name": "MPU/Pedals/Accelerator_Norm",
775+
"unit": "%",
776+
"values": [
777+
1
778+
]
779+
},
780+
{
781+
"name": "MPU/Pedals/Brake_Norm",
782+
"unit": "%",
783+
"values": [
784+
2
785+
]
786+
}
787+
],
788+
"sim_freq": 100
789+
},
741790
{
742791
"id": "0x701",
743792
"desc": "MPU Debug",
@@ -2212,4 +2261,4 @@
22122261
],
22132262
"sim_freq": 1000
22142263
}
2215-
]
2264+
]

0 commit comments

Comments
 (0)