Skip to content

Commit

Permalink
#234: Flowdeck: Fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Jun 14, 2017
1 parent 3698f09 commit 843e7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deck/drivers/src/flowdeck.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ static void pamotionTask(void *param)

readMotion(&currentMotion);

#ifdef ESTIMATOR_TYPE_kalman
// Flip motion information to comply with sensor mounting
// (might need to be changed if mounted diffrently)
int16_t accpx = -currentMotion.deltaY;
int16_t accpy = -currentMotion.deltaX;

#ifdef ESTIMATOR_TYPE_kalman
// Outlier removal
if (abs(accpx) < OULIER_LIMIT && abs(accpy) < OULIER_LIMIT) {

Expand Down

0 comments on commit 843e7ca

Please sign in to comment.