change(filter): add more functions to time critical section

This commit is contained in:
Naxdy 2024-03-30 08:09:58 +01:00
parent 55b9bc6d2c
commit 26d957f6f3
Signed by untrusted user: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -180,6 +180,7 @@ pub struct KalmanState {
impl KalmanState {
// runs kalman filter
#[link_section = ".time_critical.run_kalman"]
pub fn run_kalman(
&mut self,
x_z: f32,
@ -291,6 +292,7 @@ impl KalmanState {
/// output at the rim longer when released.
///
/// Output is a tuple of the x and y positions.
#[link_section = ".time_critical.run_waveshaping"]
pub fn run_waveshaping(
x_pos: f32,
y_pos: f32,