Browse Source

Added missing variable initializations

master
kamilritz 5 years ago committed by Roman Bapst
parent
commit
8f70a10565
  1. 6
      test/sensor_simulator/airspeed.h
  2. 2
      test/sensor_simulator/baro.h
  3. 2
      test/sensor_simulator/range_finder.h
  4. 2
      test/sensor_simulator/sensor_simulator.cpp
  5. 2
      test/test_EKF_airspeed.cpp

6
test/sensor_simulator/airspeed.h

@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
****************************************************************************/
/**
* Feeds Ekf with Mag data
* Feeds Ekf with airspeed data
* @author Kamil Ritz <ka.ritz@hotmail.com>
*/
#pragma once
@ -53,8 +53,8 @@ public: @@ -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;

2
test/sensor_simulator/baro.h

@ -53,7 +53,7 @@ public: @@ -53,7 +53,7 @@ public:
void setData(float baro);
private:
float _baro_data;
float _baro_data{0.0f};
void send(uint64_t time) override;

2
test/sensor_simulator/range_finder.h

@ -54,7 +54,7 @@ public: @@ -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;

2
test/sensor_simulator/sensor_simulator.cpp

@ -31,7 +31,7 @@ void SensorSimulator::setSensorDataToDefault() @@ -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()
{

2
test/test_EKF_airspeed.cpp

@ -67,7 +67,7 @@ class EkfAirspeedTest : public ::testing::Test { @@ -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();

Loading…
Cancel
Save