diff --git a/test/sensor_simulator/airspeed.h b/test/sensor_simulator/airspeed.h index 546d77440b..79dcd87ebd 100644 --- a/test/sensor_simulator/airspeed.h +++ b/test/sensor_simulator/airspeed.h @@ -32,7 +32,7 @@ ****************************************************************************/ /** - * Feeds Ekf with Mag data + * Feeds Ekf with airspeed data * @author Kamil Ritz */ #pragma once @@ -53,8 +53,8 @@ public: void setData(float true_airspeed, float eas2tas); private: - float _true_airspeed_data; - float _indicated_airspeed_data; + float _true_airspeed_data{0.0f}; + float _indicated_airspeed_data{0.0f}; void send(uint64_t time) override; diff --git a/test/sensor_simulator/baro.h b/test/sensor_simulator/baro.h index f6f3fe92a8..fbe5a9c597 100644 --- a/test/sensor_simulator/baro.h +++ b/test/sensor_simulator/baro.h @@ -53,7 +53,7 @@ public: void setData(float baro); private: - float _baro_data; + float _baro_data{0.0f}; void send(uint64_t time) override; diff --git a/test/sensor_simulator/range_finder.h b/test/sensor_simulator/range_finder.h index 42904d9e04..63d9c44d05 100644 --- a/test/sensor_simulator/range_finder.h +++ b/test/sensor_simulator/range_finder.h @@ -54,7 +54,7 @@ public: flow_message dataAtRest(); private: - float _range_data; + float _range_data{0.0f}; int8_t _range_quality; void send(uint64_t time) override; diff --git a/test/sensor_simulator/sensor_simulator.cpp b/test/sensor_simulator/sensor_simulator.cpp index b779f8bfee..a2d8b4a1dc 100644 --- a/test/sensor_simulator/sensor_simulator.cpp +++ b/test/sensor_simulator/sensor_simulator.cpp @@ -31,7 +31,7 @@ void SensorSimulator::setSensorDataToDefault() _flow.setRateHz(50); _rng.setRateHz(30); _vio.setRateHz(30); - _airspeed.setRateHz(30); // TODO: check this rate + _airspeed.setRateHz(100); } void SensorSimulator::setSensorRateToDefault() { diff --git a/test/test_EKF_airspeed.cpp b/test/test_EKF_airspeed.cpp index 849467e373..028c8731c4 100644 --- a/test/test_EKF_airspeed.cpp +++ b/test/test_EKF_airspeed.cpp @@ -67,7 +67,7 @@ class EkfAirspeedTest : public ::testing::Test { } }; -TEST_F(EkfAirspeedTest, temp) +TEST_F(EkfAirspeedTest, testWindVelocityEstimation) { const Vector3f simulated_velocity(1.5f,0.0f,0.0f); _ekf_wrapper.enableExternalVisionVelocityFusion();