From 26d957f6f3534bcba9c2cfea9cb94751cf26ab35 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Sat, 30 Mar 2024 08:09:58 +0100 Subject: [PATCH] change(filter): add more functions to time critical section --- src/filter.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/filter.rs b/src/filter.rs index 8ee15ac..b13c915 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -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,