change(filter): add more functions to time critical section
This commit is contained in:
parent
55b9bc6d2c
commit
26d957f6f3
1 changed files with 2 additions and 0 deletions
|
@ -180,6 +180,7 @@ pub struct KalmanState {
|
||||||
|
|
||||||
impl KalmanState {
|
impl KalmanState {
|
||||||
// runs kalman filter
|
// runs kalman filter
|
||||||
|
#[link_section = ".time_critical.run_kalman"]
|
||||||
pub fn run_kalman(
|
pub fn run_kalman(
|
||||||
&mut self,
|
&mut self,
|
||||||
x_z: f32,
|
x_z: f32,
|
||||||
|
@ -291,6 +292,7 @@ impl KalmanState {
|
||||||
/// output at the rim longer when released.
|
/// output at the rim longer when released.
|
||||||
///
|
///
|
||||||
/// Output is a tuple of the x and y positions.
|
/// Output is a tuple of the x and y positions.
|
||||||
|
#[link_section = ".time_critical.run_waveshaping"]
|
||||||
pub fn run_waveshaping(
|
pub fn run_waveshaping(
|
||||||
x_pos: f32,
|
x_pos: f32,
|
||||||
y_pos: f32,
|
y_pos: f32,
|
||||||
|
|
Loading…
Reference in a new issue