Skip to content

Commit

Permalink
cleanup reabse
Browse files Browse the repository at this point in the history
  • Loading branch information
orneryd committed Jun 15, 2018
1 parent 99c1f00 commit 38fde07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/filter/kalman.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ void init_kalman(kalman_t *filter, float q)
filter->x = 0.0f; //set intial value, can be zero if unknown
filter->lastX = 0.0f; //set intial value, can be zero if unknown
filter->e = 1.0f;
filter->vel = 0.0f; //set intial value, can be zero if unknown
filter->lastVel = 0.0f; //set intial value, can be zero if unknown
filter->acc = 0.0f; //set intial value, can be zero if unknown
}

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

//update last state
kalmanState->lastX = kalmanState->x;
kalmanState->lastVel = kalmanState->vel;

if (target != 0.0f) {
kalmanState->e = ABS(1.0f - (target/kalmanState->lastX));
Expand Down
1 change: 0 additions & 1 deletion src/filter/kalman.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ typedef struct kalman
float acc; //acceleration
float lastX; //previous state
float e;
float lastVel; //previous velocity
float processCount; //keeps track of the process covariance
} kalman_t;

Expand Down

0 comments on commit 38fde07

Please sign in to comment.