Skip to content

Commit

Permalink
Merge pull request #404 from guglie/outlier-filter-fix
Browse files Browse the repository at this point in the history
Fixed typo in TDoA outlier filter function
  • Loading branch information
krichardsson authored Mar 11, 2019
2 parents bd400b4 + 1a45a51 commit 741a786
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/interface/outlierFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "stabilizer_types.h"

bool outlierFilterValidateTdoaSimple(const tdoaMeasurement_t* tdoa);
bool outlierFilterVaildateTdoaSteps(const tdoaMeasurement_t* tdoa, const float error, const vector_t* jacobian, const point_t* estPos);
bool outlierFilterValidateTdoaSteps(const tdoaMeasurement_t* tdoa, const float error, const vector_t* jacobian, const point_t* estPos);

void outlierFilterReset();

Expand Down
2 changes: 1 addition & 1 deletion src/modules/src/estimator_kalman.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ static void stateEstimatorUpdateWithTDOA(tdoaMeasurement_t *tdoa)
.z = S[STATE_Z],
};

bool sampleIsGood = outlierFilterVaildateTdoaSteps(tdoa, error, &jacobian, &estimatedPosition);
bool sampleIsGood = outlierFilterValidateTdoaSteps(tdoa, error, &jacobian, &estimatedPosition);
if (sampleIsGood) {
stateEstimatorScalarUpdate(&H, error, tdoa->stdDev);
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/src/outlierFilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool outlierFilterValidateTdoaSimple(const tdoaMeasurement_t* tdoa) {
return isDistanceDiffSmallerThanDistanceBetweenAnchors(tdoa);
}

bool outlierFilterVaildateTdoaSteps(const tdoaMeasurement_t* tdoa, const float error, const vector_t* jacobian, const point_t* estPos) {
bool outlierFilterValidateTdoaSteps(const tdoaMeasurement_t* tdoa, const float error, const vector_t* jacobian, const point_t* estPos) {
bool sampleIsGood = false;

if (isDistanceDiffSmallerThanDistanceBetweenAnchors(tdoa)) {
Expand Down

0 comments on commit 741a786

Please sign in to comment.