Enabled DriverFramework drivers for SITL build

The code here works only for SITL at the present time.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-11-18 11:58:21 -08:00
parent d2cacb9bc6
commit b8c40ecb6b
14 changed files with 1099 additions and 77 deletions
@@ -349,16 +349,19 @@ 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));