|
PER Firmware
|
Generic bang-bang controller with hysteresis and minimum switch interval. More...
#include "bangbang.h"Functions | |
| void | bangbang_update (bangbang_t *controller, float value, uint32_t current_time) |
| Update the state of the bang-bang controller based on the input value and current time. It calls the appropriate on/off functions if the state changes. | |
Generic bang-bang controller with hysteresis and minimum switch interval.
| void bangbang_update | ( | bangbang_t * | controller, |
| float | value, | ||
| uint32_t | current_time ) |
Update the state of the bang-bang controller based on the input value and current time. It calls the appropriate on/off functions if the state changes.
| controller | Pointer to the bang-bang controller. |
| value | The current input value. |
| current_time | The current time in milliseconds. |