From f32e815a66bad338580fac78d79e9cfe33a7206b Mon Sep 17 00:00:00 2001 From: EPFLepuck <103180750+EPFLepuck@users.noreply.github.com> Date: Tue, 10 May 2022 15:48:44 +0200 Subject: [PATCH] Remove static acc_z --- compute_case.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute_case.c b/compute_case.c index 08431da..16e41e1 100644 --- a/compute_case.c +++ b/compute_case.c @@ -17,7 +17,6 @@ #define GRAVITY 9.80665f static float acc_x = 0; -static float acc_z = 0; static uint8_t acc_case = 0; // Thread that tells us in which case (0, I, II, III, IV) (SPQR) we are @@ -29,6 +28,7 @@ static THD_FUNCTION(SelectCase, arg) { float acc_y = 0; + float acc_z = 0; while(1){ // get x and y component accelerometer -- GitLab