Machinekit

Machinekit

Machinekit Documentation

HAL Component — SCALE

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

scale — Machinekit HAL component that applies a scale and offset to its input

SYNOPSIS

scale

USAGE SYNOPSIS

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

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

FUNCTIONS

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

PINS

scale.N.in float in ( OR <newinstname>.in float in )

scale.N.gain float in ( OR <newinstname>.gain float in )

scale.N.offset float in ( OR <newinstname>.offset float in )

scale.N.out float out ( OR <newinstname>.out float out ) - out = in * gain + offset

LICENCE

GPL