Dead zone function#
-
float uz_signals_dead_zone(float input, float upper_threshold, float lower_threshold)#
Outputs zero, if signal is within the deadzone. Outputs input signal substracted by either the upper or lower threshold otherwise.
- Parameters:
input – Input signal
upper_threshold – Max limit for deadzone
lower_threshold – min limit for deadzone
- Returns:
float Returns signal
Example#
1#include "uz_signals.h"
2int main(void) {
3 float input=1.1f;
4 float upper_threshold=10.5f;
5 float lower_threshold=-20.5f;
6 float output = uz_signals_dead_zone(input, upper_limit, lower_limit));
7}
Description#
The dead zone function outputs zero within a specified region. Otherwise it outputs the input subtracted from the threshold.
input |
output |
---|---|
input >= lower_threshold && input <= upper_threshold |
zero |
input > upper_threshold |
input - upper_threshold |
input < lower_threshold |
input - lower_threshold |
Fig. 263 Dead zone function