AngleSensorAngleSensor Icon

AngleSensor

Measures the absolute rotational angle of a connected spline. This component models an ideal sensor that outputs the absolute angle of a spline. It directly reflects the phi variable of an associated spline object, which is assumed to be defined in the extended PartialAbsoluteSensor or through a connection. The relationship defining the sensor's output is:

\[phi_{sensor} = spline.phi\]

There are no dynamics, delays, or inaccuracies modeled in this sensor; it provides a perfect, instantaneous reading of the spline's angle.

This component extends from PartialAbsoluteSensor

Usage

RotationalComponents.AngleSensor()

Connectors

  • spline - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (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

"""
Measures the absolute rotational angle of a connected spline.
This component models an ideal sensor that outputs the absolute angle of a spline.
It directly reflects the `phi` variable of an associated `spline` object, which is
assumed to be defined in the extended `PartialAbsoluteSensor` or through a
connection. The relationship defining the sensor's output is:

math phi_{sensor} = spline.phi

There are no dynamics, delays, or inaccuracies modeled in this sensor;
it provides a perfect, instantaneous reading of the spline's angle.
"""</span>
<span class="hljs-keyword">component</span> AngleSensor
&nbsp;&nbsp;<span class="hljs-keyword">extends</span> <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/RotationalComponents/types/PartialAbsoluteSensor.html">PartialAbsoluteSensor</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"Absolute angle of spline as output signal"</span>
&nbsp;&nbsp;<span class="hljs-symbol">phi</span> = <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/connectors/RealOutput.html">RealOutput</a></span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;phi = spline.phi
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://RotationalComponents/SingleSplineSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
Measures the absolute rotational angle of a connected spline.
This component models an ideal sensor that outputs the absolute angle of a spline.
It directly reflects the `phi` variable of an associated `spline` object, which is
assumed to be defined in the extended `PartialAbsoluteSensor` or through a
connection. The relationship defining the sensor's output is:

math phi_{sensor} = spline.phi

There are no dynamics, delays, or inaccuracies modeled in this sensor;
it provides a perfect, instantaneous reading of the spline's angle.
"""</span>
<span class="hljs-keyword">component</span> AngleSensor
&nbsp;&nbsp;<span class="hljs-comment">"Spline of the shaft from which sensor information shall be measured"</span>
&nbsp;&nbsp;<span class="hljs-symbol">spline</span> = <span>Spline</span>() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
&nbsp;&nbsp;<span class="hljs-comment">"Absolute angle of spline as output signal"</span>
&nbsp;&nbsp;<span class="hljs-symbol">phi</span> = <span>RealOutput</span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;0 = spline.tau
&nbsp;&nbsp;phi = spline.phi
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://RotationalComponents/SingleSplineSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses