AngleSensor
IconAngleSensor
Ideal sensor to measure the absolute angle of spline
This component extends from PartialAbsoluteSensor
Usage
AngleSensor()
Connectors
spline
- (Spline
)phi
- This connector represents a real signal as an output from a component (RealOutput
)
Behavior
\[ \begin{align} 0 &= \mathtt{spline.tau}\left( t \right) \\ \mathtt{phi}\left( t \right) &= \mathtt{spline.phi}\left( t \right) \end{align} \]
Source
# Ideal sensor to measure the absolute angle of spline
component AngleSensor
extends PartialAbsoluteSensor
# Absolute angle of spline as output signal
phi = RealOutput() [{
"JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
}]
relations
phi = spline.phi
metadata {
"JuliaSim": {"icons": {"default": "jsml://RotationalComponents/SingleSplineSensor.svg"}}
}
end
Flattened Source
# Ideal sensor to measure the absolute angle of spline component AngleSensor # Spline of the shaft from which sensor information shall be measured spline = Spline() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] # Absolute angle of spline as output signal phi = RealOutput() [{ "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}} }] relations 0 = spline.tau phi = spline.phi metadata { "JuliaSim": {"icons": {"default": "jsml://RotationalComponents/SingleSplineSensor.svg"}} } end
Test Cases
Related
- Examples
- Experiments
- Analyses