Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PDU 24A #194

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
140 changes: 138 additions & 2 deletions cangen/can-messages/mpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@
"format": "divide100"
}
]
}
,
},
{
"name": "MPU/State/TorqueLimit",
"unit": "percentage",
Expand Down Expand Up @@ -921,6 +920,27 @@
}
]
},
{
"name": "MPU/Fuses/Pump1",
"unit": "",
"sim": {
"options": [
[
0,
0.95
],
[
1,
0.05
]
]
},
"points": [
{
"size": 1
}
]
},
{
"name": "MPU/Fuses/Reserved",
"unit": "",
Expand All @@ -932,5 +952,121 @@
]
}
]
},
{
"id": "0x508",
"desc": "PDU Current",
"sim_freq": 1000,
"fields": [
{
"name": "MPU/Current/Motor_Controller",
"unit": "A",
"sim": {
"min": 0,
"max": 3,
"inc_min": 0.01,
"inc_max": 3
},
"points": [
{
"size": 16,
"endianness": "little",
"format": "divide1000"
}
]
},
{
"name": "MPU/Current/Battbox_Fans",
"unit": "A",
"sim": {
"min": 0,
"max": 5,
"inc_min": 0.01,
"inc_max": 5
},
"points": [
{
"size": 16,
"endianness": "little",
"format": "divide1000"
}
]
},
{
"name": "MPU/Current/Pumps",
"unit": "A",
jr1221 marked this conversation as resolved.
Show resolved Hide resolved
"sim": {
"min": 0,
"max": 2,
"inc_min": 0.01,
"inc_max": 2
},
"points": [
{
"size": 16,
"endianness": "little",
"format": "divide1000"
}
]
},
{
"name": "MPU/Current/LV_Boards",
"unit": "A",
"sim": {
"min": 0,
"max": 1.25,
"inc_min": 0.01,
"inc_max": 1.25
},
"points": [
{
"size": 16,
"endianness": "little",
"format": "divide1000"
}
]
}
]
},
{
"id": "0x509",
"desc": "Pump Sensors Voltage",
"sim_freq": 1000,
"fields": [
{
"name": "MPU/Pump_Sensors/Sensor0",
"unit": "V",
"sim": {
"min": 0,
"max": 3.3,
"inc_min": 0.01,
"inc_max": 1
},
"points": [
{
"size": 32,
"endianness": "little",
"format": "divide10000"
}
]
},
{
"name": "MPU/Pump_Sensors/Sensor1",
"unit": "V",
"sim": {
"min": 0,
"max": 3.3,
"inc_min": 0.01,
"inc_max": 1
},
"points": [
{
"size": 32,
"endianness": "little",
"format": "divide10000"
}
]
}
]
}
]
Loading