Machinekit

Machinekit

Machinekit Documentation

HAL Component — INVERT

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

invert — Compute the inverse of the input signal

SYNOPSIS

The output will be the mathematical inverse of the input, ie \fBout\fR = 1/\fBin\fR. The parameter \fBdeadband\fR can be used to control how close to 0 the denominator can be before the output is clamped to 0. \fBdeadband\fR must be at least 1e-8, and must be positive.

USAGE SYNOPSIS

The output will be the mathematical inverse of the input, ie \fBout\fR = 1/\fBin\fR. The parameter \fBdeadband\fR can be used to control how close to 0 the denominator can be before the output is clamped to 0. \fBdeadband\fR must be at least 1e-8, and must be positive.

FUNCTIONS

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

PINS

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

invert.N.out float out ( OR <newinstname>.out float out ) - Analog output value

invert.N.deadband float io ( OR <newinstname>.deadband float io ) - The \fBout\fR will be zero if \fBin\fR is between -\fBdeadband\fR and +\fBdeadband\fR

LICENCE

GPL