mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 13:23:34 +08:00
Baro sim: Initialize struct
This commit is contained in:
@@ -245,6 +245,7 @@ int
|
|||||||
BAROSIM::init()
|
BAROSIM::init()
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
struct baro_report brp = {};
|
||||||
//PX4_DEBUG("BAROSIM::init");
|
//PX4_DEBUG("BAROSIM::init");
|
||||||
|
|
||||||
ret = VirtDevObj::init();
|
ret = VirtDevObj::init();
|
||||||
@@ -263,8 +264,6 @@ BAROSIM::init()
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct baro_report brp;
|
|
||||||
|
|
||||||
/* do a first measurement cycle to populate reports with valid data */
|
/* do a first measurement cycle to populate reports with valid data */
|
||||||
_measure_phase = 0;
|
_measure_phase = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user