From 824811185187d2941eff054ec7be1aa2aa6ace50 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Wed, 25 Apr 2018 22:49:49 -0400 Subject: Update to have sensor normals and positions for dummy driver. --- src/survive_driver_dummy.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/survive_driver_dummy.c b/src/survive_driver_dummy.c index ae3dd30..e2e01a4 100644 --- a/src/survive_driver_dummy.c +++ b/src/survive_driver_dummy.c @@ -68,6 +68,15 @@ int DriverRegDummy(SurviveContext *ctx) device->driver = sp; memcpy(device->codename, "DM0", 4); memcpy(device->drivername, "DUM", 4); + device->sensor_ct = 1; + device->sensor_locations = malloc( sizeof(FLT)*3 ); + device->sensor_normals = malloc( sizeof(FLT)*3 ); + device->sensor_locations[0] = 0; + device->sensor_locations[1] = 0; + device->sensor_locations[2] = 0; + device->sensor_normals[0] = 0; + device->sensor_normals[1] = 0; + device->sensor_normals[2] = 1; device->timebase_hz = 48000000; device->imu_freq = 1000.0f; -- cgit v1.2.3