Inputs¶
The Inputs
element can be used to add Inputs, which can be connected to signals of the system.
The input receives data each cycle from the signal it is connected to.
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Inputs:
- Name: "DemandVelocity"
DataType: "Float"
Unit: "m/s"
Description: "Velocity of the reference trajectory."
- Name: "InputUint8"
DataType: "Uint8"
Description: "Uint8 input."
LowerBound: "0"
UpperBound: "10"
ResetValue: "1"
- Name: "BooleanInput"
DataType: "Bool"
Description: "Boolean input."
ResetValue: "True"
|
YAML schema¶
1 | Inputs: list(include('Signal'), required=False)
|
1 2 3 4 5 6 7 8 | Signal:
Name: name()
DataType: Enum("Uint8", "Uint16", "Uint32", "Uint64", "Int8", "Int16", "Int32", "Int64", "Float", "Double", "Bool", required=True)
Description: str(required=False)
Unit: str(required=False)
LowerBound: str(required=False)
UpperBound: str(required=False)
ResetValue: str(required=False)
|
Attribute |
Required |
Description |
---|---|---|
|
Yes |
The name of the input. Should comply with the Naming conventions. |
|
Yes |
The data type, supported types: “Uint8”, “Uint16”, “Uint32”, “Uint64”, “Int8”, “Int16”, “Int32”, “Int64”, “Float”, “Double”, “Bool”. |
|
No |
The |
|
No |
The |
|
No |
The |
|
No |
The |
|
No |
The |