Machinekit

Machinekit

Machinekit Documentation

HAL Component — OFFSETV2

INSTANTIABLE COMPONENTS — General

All instantiable components can be loaded in two manners

Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)

NAME

offsetv2 — Adds an offset to an input, and subtracts it from the feedback value

SYNOPSIS

offsetv2

USAGE SYNOPSIS

loadrt offsetv2
OR
newinst offsetv2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]

( args in [ ] denote possible args and parameters, may not be used in all components )

FUNCTIONS

offsetv2.N.update-output.funct ( OR <newinstname>.update-output.funct (requires a floating-point thread) )

Updated the output value by adding the offset to the input

offsetv2.N.update-feedback.funct ( OR <newinstname>.update-feedback.funct (requires a floating-point thread) )

Update the feedback value by subtracting the offset from the feedback

PINS

LICENCE

GPL