Skip to content

Commit a712a06

Browse files
committed
cleanup reabse
1 parent 4468bc6 commit a712a06

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/filter/kalman.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ void init_kalman(kalman_t *filter, float q)
2323
filter->x = 0.0f; //set intial value, can be zero if unknown
2424
filter->lastX = 0.0f; //set intial value, can be zero if unknown
2525
filter->e = 1.0f;
26-
filter->vel = 0.0f; //set intial value, can be zero if unknown
27-
filter->lastVel = 0.0f; //set intial value, can be zero if unknown
2826
filter->acc = 0.0f; //set intial value, can be zero if unknown
2927
}
3028

@@ -102,7 +100,6 @@ inline float kalman_process(kalman_t* kalmanState, volatile float input, volatil
102100

103101
//update last state
104102
kalmanState->lastX = kalmanState->x;
105-
kalmanState->lastVel = kalmanState->vel;
106103

107104
if (target != 0.0f) {
108105
kalmanState->e = ABS(1.0f - (target/kalmanState->lastX));

src/filter/kalman.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ typedef struct kalman
2020
float acc; //acceleration
2121
float lastX; //previous state
2222
float e;
23-
float lastVel; //previous velocity
2423
float processCount; //keeps track of the process covariance
2524
} kalman_t;
2625

0 commit comments

Comments
 (0)