fusion-zauberstab/firmware/include/pt1.h
Thomas Schmid 28ba543381 add pt1 filter code
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-06-18 11:33:56 +02:00

10 lines
198 B
C

#pragma once
struct pt1_state {
float y_n1;
float K;
float T;
};
void pt1_init(struct pt1_state *state, float K, float T);
float pt1_update(struct pt1_state *state, float u, float dt);