Machinekit

Machinekit

Machinekit Documentation

HAL Component — ABS

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

abs — Compute the absolute value and sign of the input signal

SYNOPSIS

abs

USAGE SYNOPSIS

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

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

FUNCTIONS

abs.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )

PINS

abs.N.in float in ( OR <newinstname>.in float in ) - Analog input value

abs.N.out float out ( OR <newinstname>.out float out ) - Analog output value, always positive

abs.N.sign bit out ( OR <newinstname>.sign bit out ) - Sign of input, false for positive, true for negative

abs.N.is-positive bit out ( OR <newinstname>.is-positive bit out ) - true if input is positive, false if input is 0 or negative

abs.N.is-negative bit out ( OR <newinstname>.is-negative bit out ) - true if input is negative, false if input is 0 or positive

LICENCE

GPL