Machinekit Documentation
HAL Component — BLEND
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
blend — Perform linear interpolation between two values
SYNOPSIS
blend
USAGE SYNOPSIS
loadrt blend
OR
newinst blend <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
blend.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
blend.N.in1 float in ( OR <newinstname>.in1 float in ) - First input. If select is equal to 1.0, the output is equal to in1
blend.N.in2 float in ( OR <newinstname>.in2 float in ) - Second input. If select is equal to 0.0, the output is equal to in2
blend.N.select float in ( OR <newinstname>.select float in ) - Select input. For values between 0.0 and 1.0, the output changes linearly from in2 to in1
blend.N.out float out ( OR <newinstname>.out float out ) - Output value.
blend.N.open bit io ( OR <newinstname>.open bit io ) - If true, select values outside the range 0.0 to 1.0 give values outside the range in2 to in1. If false, outputs are clamped to the the range in2 to in1
LICENCE
GPL