Skip to content

Commit

Permalink
feat: change controls maps from/to steering, ecu, controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Pippo98 committed Aug 29, 2024
1 parent 0bfc14e commit 7931bef
Showing 1 changed file with 13 additions and 58 deletions.
71 changes: 13 additions & 58 deletions networks/primary/network.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
"EcuControlErrors": {
"type": "bitset",
"items": [
"forced_off",
"disabled_from_ecu",
"wrong_maps",
"control_watchdog"
]
Expand Down Expand Up @@ -1709,7 +1709,7 @@
],
"receiving": [],
"contents": {
"map_pw": {
"map_power": {
"type": "float32",
"range": [
-0.5,
Expand All @@ -1718,24 +1718,9 @@
"precision": 0.01,
"optimize": false
},
"map_sc": {
"type": "float32",
"range": [
0,
1
],
"precision": 0.01,
"optimize": false
},
"map_tv": {
"type": "float32",
"range": [
0,
1
],
"precision": 0.01,
"optimize": false
}
"sc_state": "Toggle",
"tv_state": "Toggle",
"reg_state": "Toggle"
}
},
{
Expand All @@ -1750,7 +1735,7 @@
"ECU"
],
"contents": {
"map_pw": {
"map_power": {
"type": "float32",
"range": [
-0.5,
Expand All @@ -1759,24 +1744,9 @@
"precision": 0.01,
"optimize": false
},
"map_sc": {
"type": "float32",
"range": [
0,
1
],
"precision": 0.01,
"optimize": false
},
"map_tv": {
"type": "float32",
"range": [
0,
1
],
"precision": 0.01,
"optimize": false
}
"sc_state": "Toggle",
"tv_state": "Toggle",
"reg_state": "Toggle"
}
},
{
Expand Down Expand Up @@ -1896,7 +1866,7 @@
"description": "Power maps used by the control algorithm. (ECU checks if are coherent with the ones in the ECU)",
"interval": 20,
"contents": {
"map_pw": {
"map_power": {
"type": "float32",
"range": [
-0.5,
Expand All @@ -1905,24 +1875,9 @@
"precision": 0.01,
"optimize": false
},
"map_sc": {
"type": "float32",
"range": [
0,
1
],
"precision": 0.01,
"optimize": false
},
"map_tv": {
"type": "float32",
"range": [
0,
1
],
"precision": 0.01,
"optimize": false
}
"sc_state": "Toggle",
"tv_state": "Toggle",
"reg_state": "Toggle"
}
},
{
Expand Down

0 comments on commit 7931bef

Please sign in to comment.