LIBRARY
Mux1
Trivial adapter that wraps a single scalar input into a 1-element vector output. Use when feeding a scalar signal into an array-input slot of a larger mux (e.g. the integral-action channel of LQRControlledRotorCraft).
Usage
MultibodyComponents.Mux1()
Connectors
u1- This connector represents a real signal as an input to a component (RealInput)y- This connector represents a real signal as an output from a component (RealOutput)
Behavior
Source
dyad
"""
Trivial adapter that wraps a single scalar input into a 1-element vector
output. Use when feeding a scalar signal into an array-input slot of a
larger mux (e.g. the integral-action channel of `LQRControlledRotorCraft`).
"""
component Mux1
"Scalar input"
u1 = RealInput() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
},
"tags": []
}
}
"1-element output vector"
y = [RealOutput() for i in 1:1] {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
y[1] = u1
endFlattened Source
dyad
"""
Trivial adapter that wraps a single scalar input into a 1-element vector
output. Use when feeding a scalar signal into an array-input slot of a
larger mux (e.g. the integral-action channel of `LQRControlledRotorCraft`).
"""
component Mux1
"Scalar input"
u1 = RealInput() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
},
"tags": []
}
}
"1-element output vector"
y = [RealOutput() for i in 1:1] {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
y[1] = u1
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses