mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 17:03:35 +08:00
Fixed SITL build
The SITL build seems to run correctly now Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -349,19 +349,16 @@ ACCELSIM::~ACCELSIM()
|
||||
int
|
||||
ACCELSIM::init()
|
||||
{
|
||||
PX4_INFO("ACCELSIM::init");
|
||||
int ret = -1;
|
||||
|
||||
struct mag_report mrp = {};
|
||||
struct accel_report arp = {};
|
||||
|
||||
PX4_INFO("ACCELSIM::init before VirtDevObj::init()");
|
||||
/* do SIM init first */
|
||||
if (VirtDevObj::init() != 0) {
|
||||
PX4_WARN("SIM init failed");
|
||||
goto out;
|
||||
}
|
||||
PX4_INFO("ACCELSIM::init after VirtDevObj::init()");
|
||||
|
||||
/* allocate basic report buffers */
|
||||
_accel_reports = new ringbuffer::RingBuffer(2, sizeof(accel_report));
|
||||
|
||||
Reference in New Issue
Block a user