WrapAngle

Wrap angle to interval ]-pi,pi] or [0,2*pi[

    WrapAngle

Library

Modelica/Blocks/Math

Description

This blocks wraps the input angle into the interval ]-pi,pi], if positiveRange == false.Otherwise the input angle u is wrapped to the interval [0,2*pi[.

Parameters

WrapAngle_0

NameLabelDescriptionData TypeValid Values

mo_positiveRange

positiveRange

Use only positive output range, if true

Scalar

true
false

WrapAngle_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signal

input

1

y

implicit

Connector of Real output signal

output

1