Permalink
Browse files

minor

  • Loading branch information...
janusheide committed Apr 4, 2018
1 parent 255b1e5 commit 70ae36d30147bdb4c5ff9c1057d3a3ba9e15a1c7
Showing with 3 additions and 3 deletions.
  1. +3 −0 src/filter/kalman.hpp
  2. +0 −3 test/src/test_kalman.cpp
@@ -18,6 +18,9 @@ template<typename EstimateType, typename GainType = float>
class kalman
{
static_assert(std::is_floating_point<GainType>::value,
"Gain type must be floating point type");
public:
/// constructor
@@ -67,18 +67,15 @@ TEST(test_kalman_filter, getters_and_setters)
int16_t min_estimate = 1;
estimator.set_min_estimate(min_estimate);
EXPECT_EQ(min_estimate, estimator.min_estimate());
}
{
int16_t max_estimate = 2;
estimator.set_max_estimate(max_estimate);
EXPECT_EQ(max_estimate, estimator.max_estimate());
}
{
float gain = 0.7f;
estimator.set_gain(gain);
EXPECT_EQ(gain, estimator.gain());
}
}

0 comments on commit 70ae36d

Please sign in to comment.