rpass i

outputs the input when the input is in between 'high' and 'low' (>= AND <=). otherwise,the last input within range is held.
Author: robert schirmer
License: BSD
Github: rbrt/control/rpass i.axo

Inlets

int32 in

int32 high

int32 low

Outlets

int32 out

bool32 inside range??

Parameters

int32 high

int32 low

Declaration
int32_t prev;
Control Rate
if ((inlet_in >= (param_low + inlet_low)) &&
    (inlet_in <= (param_high + inlet_high))) {
  outlet_out = inlet_in;
  prev = inlet_in;
  outlet_b = 1;
} else {
  outlet_out = prev;
  outlet_b = 0;
}

Privacy

© 2024 Zrna Research