modelSwitch

Switch between two or more Pose signals
Diagram of Switch

Extends from StewartPlatform.Icons.Switch (Icon for 'Switch' model).

Parameters

TypeNameDefaultDescription
Integern2Number of different input signals
SwitchTimeDeftimeDefSwitchTimeDef.periodsSelect how to define the switch time instants
SI.TimestartTime0The output is the first signal for time<startTime+period[1])
SI.Time[n - 1]period{0 for i in 1:n - 1}Duration of each signal (set n-1 periods)
SI.Time[n - 1]switchTime{0 for i in 1:n - 1}Time instants when to switch signal (set n-1 times)

Connectors

TypeNameDefaultDescription
Interfaces.Pose[n]poseInput
Interfaces.PoseposeOutput

Components

TypeNameDefaultDescription
IntegercountNumber of the current signal
Interfaces.PoseDeMux[n]deMux
Interfaces.PoseMuxmux

Contents

NameDescription
fill_timeInstantsprotectedFunction to fill the elements of 'timeInstants' array