Encoder State Trigger

This MotoHawk™ block triggers whenever the encoder state changes, such as from zero speed to rotating (POSN_UNKNOWN).

Block ID

motohawk_encoder_state_trigger

Library

MotoHawk_lib/Encoder Blocks

Description

The triggered subsystem may use the MotoHawk Encoder State block to get the value of the new state.

Block Parameters

Parameter Field Values Comments/Description
Trigger Name Alpha-numeric text, single-quote enclosed Set the text that will be appended to code generated function name. This is useful when using a difference tool to compare the difference from one build to another. If this is left as an empty cell the appended value will be generated at build time, and can change from build to build.
Specify task that trigger executes within by name Check Box Check to specify the task by name rather than specify via the Trigger Tasking Priority dropdown.

Only visible if the block is used by a model whose target supports this feature.
Reference Task Name Alpha-numeric text, single quote enclosed The name of the task that this trigger will be executed within.

Only visible when the option to Specify task that trigger executes within by name has been checked and is supported by a model whose target supports this feature.
Trigger Tasking Priority ApplicationInteruptTask
BGNDTask
FGNDTask
Selects which task priority this trigger will execute in.

Only visible when the option to Specify task that trigger executes within by name has not been checked and is supported by a model whose target supports this feature.
This trigger is inside another triggered subsystem Check Box (enable) Enable to allow placement inside another triggered subsystem.