... | ... | @@ -22,5 +22,36 @@ The `CAN` EE-component models a bus using the [CAN bus](https://en.wikipedia.org |
|
|
| `type` | | S | Must be `can_bus` for a `CAN` bus. Must be the first entry. | |
|
|
|
| `bit_rate` | bits/s | I | Transmission rate of the bus. | `10 Mbits/s` |
|
|
|
|
|
|
# Examples
|
|
|
|
|
|
## ConstantBus
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"type": "constant_bus",
|
|
|
"mode": "constant_rate",
|
|
|
"rate": 100000,
|
|
|
"connected_to": [
|
|
|
"SteeringActuator",
|
|
|
"BrakingActuator",
|
|
|
...
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## CAN Bus
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"type": "can_bus",
|
|
|
"bit_rate": 2000000,
|
|
|
"connected_to": [
|
|
|
"SteeringActuator",
|
|
|
"BrakingActuator",
|
|
|
...
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
---
|
|
|
Next: [Sensor and Actuator Properties](/user-docs/json-scenario-reference/Sensor-and-Actuator-Properties) |
|
|
\ No newline at end of file |