forked from Archive/PX4-Autopilot
Added missing variable initializations
This commit is contained in:
parent
5b02310f43
commit
8f70a10565
|
@ -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:
|
|||
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;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
void setData(float baro);
|
||||
|
||||
private:
|
||||
float _baro_data;
|
||||
float _baro_data{0.0f};
|
||||
|
||||
void send(uint64_t time) override;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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…
Reference in New Issue