diff options
author | cnlohr <lohr85@gmail.com> | 2018-04-25 22:49:49 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-04-25 22:49:49 -0400 |
commit | 824811185187d2941eff054ec7be1aa2aa6ace50 (patch) | |
tree | be4e58254d6f430873528331508299dff86386cd /src | |
parent | 3fb4ebadb9f1ef29c28141def15e03ec3b0c6fff (diff) | |
download | libsurvive-824811185187d2941eff054ec7be1aa2aa6ace50.tar.gz libsurvive-824811185187d2941eff054ec7be1aa2aa6ace50.tar.bz2 |
Update to have sensor normals and positions for dummy driver.
Diffstat (limited to 'src')
-rw-r--r-- | src/survive_driver_dummy.c | 9 |
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; |