Fixed SITL build

The SITL build seems to run correctly now

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-11-18 13:02:39 -08:00
parent b8c40ecb6b
commit af155b8e59
4 changed files with 38 additions and 32 deletions
@@ -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));