... | ... | @@ -4,11 +4,11 @@ A `Sensor` reads a `PhysicalValue` inside the vehicle and sends its value with t |
|
|
|
|
|
| Entry | [Unit](/user-docs/JSON-scenarios-reference#units) | [Type](/user-docs/JSON-scenarios-reference#types) | Description | Default Value |
|
|
|
| :---- | :--- | :--- | :---------- | :------------ |
|
|
|
| `type` | - | S | Must be `sensor` for a `Sensor` component. Must be the first entry. | |
|
|
|
| `physical_value_name` | - | S | Name of the watched value. | - |
|
|
|
| `type` | | S | Must be `sensor` for a `Sensor` component. Must be the first entry. | |
|
|
|
| `physical_value_name` | | S | Name of the watched value. | |
|
|
|
| `update_interval` | s | Duration | Duration between to sensor "reads". | `100 ms` |
|
|
|
| `read_time` | s | Duration | Duration to read the value. | `10 ms` |
|
|
|
| `send_only_changed` | - | Bool | Whether the sensor sends a message only when the read value has changed or not. | `false` |
|
|
|
| `send_only_changed` | | Bool | Whether the sensor sends a message only when the read value has changed or not. | `false` |
|
|
|
|
|
|
List of `PhysicalValues` available for sensing:
|
|
|
|
... | ... | @@ -26,10 +26,10 @@ The actuator can also have a *feedback sensor* attached (`sensor` entry) which w |
|
|
|
|
|
| Entry | [Unit](/user-docs/JSON-scenarios-reference#units) | [Type](/user-docs/JSON-scenarios-reference#types) | Description | Default Value |
|
|
|
| :---- | :--- | :--- | :---------- | :------------ |
|
|
|
| `type` | - | S | Must be `actuator` for a `Actuator` component. Must be the first entry. | |
|
|
|
| `physical_value_name` | - | S | Name of the set value. | - |
|
|
|
| `change_rate` | Units/s | FP | Speed at which the actuator can change the physical value, in "units" per seconds. | - |
|
|
|
| `sensor` | - | `SensorProperties` | (**Optional**) If set, the actuator will send feedback for the current value. The `type` and `physical_value_name` entries of the `SensorProperties` are ignored here. | - |
|
|
|
| `type` | | S | Must be `actuator` for a `Actuator` component. Must be the first entry. | |
|
|
|
| `physical_value_name` | | S | Name of the set value. | |
|
|
|
| `change_rate` | Units/s | FP | Speed at which the actuator can change the physical value, in "units" per seconds. | |
|
|
|
| `sensor` | | `SensorProperties` | (**Optional**) If set, the actuator will send feedback for the current value. The `type` and `physical_value_name` entries of the `SensorProperties` are ignored here. | |
|
|
|
|
|
|
List of `PhysicalValues` from the powertrain that can be actuated:
|
|
|
|
... | ... | |