aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-04-25 22:49:49 -0400
committercnlohr <lohr85@gmail.com>2018-04-25 22:49:49 -0400
commit824811185187d2941eff054ec7be1aa2aa6ace50 (patch)
treebe4e58254d6f430873528331508299dff86386cd
parent3fb4ebadb9f1ef29c28141def15e03ec3b0c6fff (diff)
downloadlibsurvive-824811185187d2941eff054ec7be1aa2aa6ace50.tar.gz
libsurvive-824811185187d2941eff054ec7be1aa2aa6ace50.tar.bz2
Update to have sensor normals and positions for dummy driver.
-rw-r--r--src/survive_driver_dummy.c9
1 files changed, 9 insertions, 0 deletions
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;