AngleSensor

model AngleSensor "Ideal sensor to measure the absolute flange angle"
    extends Rotational.Interfaces.PartialAbsoluteSensor;

    Modelica.Blocks.Interfaces.RealOutput phi(unit = "rad", displayUnit = "deg") "Absolute angle of flange as output signal"
        annotation (Placement(transformation(extent = {
            {100, -10}, 
            {120, 10}})));
equation
    phi = flange.phi;

    annotation (
        Documentation(info = "<html>\n<p>\nMeasures the <strong>absolute angle phi</strong> of a flange in an ideal\nway and provides the result as output signal <strong>phi</strong>\n(to be further processed with blocks of the Modelica.Blocks library).\n</p>\n</html>"),
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {70, -30}, 
                        {120, -70}},
                    textString = "phi")}));
end AngleSensor;