aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-11 03:53:12 -0400
committercnlohr <lohr85@gmail.com>2018-03-11 03:53:12 -0400
commitc3235ace3df4fae68c11dcd449ab3a32afca72aa (patch)
treef0d7fe7a04c13c1b27f6a4bf31a195ed76a0d8dc
parent341e5579e01721d5124d766806e6cabb8efb34fb (diff)
downloadlibsurvive-c3235ace3df4fae68c11dcd449ab3a32afca72aa.tar.gz
libsurvive-c3235ace3df4fae68c11dcd449ab3a32afca72aa.tar.bz2
remove TODO and fix xyz accelerometer data from the lighthouse.
-rw-r--r--README.md3
-rwxr-xr-xsrc/survive_cal.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index 7c30bd8..3e7ff49 100644
--- a/README.md
+++ b/README.md
@@ -304,8 +304,7 @@ Given an HMD:
5) Defining the value of ```pose``` in ```BaseStationData```: This pose will convert something in lighthouse-local space into a position in world space. When calibrating, if you have an object you want to define as 0,0,0... You will need to take its pose and invert it.
-6) Posers will take into account the ```pose``` of various lighthouses, if NOT in calibration and return poses of objects in world space assuming the lighthoses are set up. **** TODO: Consider performance of different ways of storing this data.
-
+6) Posers will take into account the ```pose``` of various lighthouses, if NOT in calibration and return poses of objects in world space assuming the lighthoses are set up.
General information for LH pose:
diff --git a/src/survive_cal.c b/src/survive_cal.c
index 7d83b64..d6657bc 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -69,8 +69,8 @@ void ootx_packet_clbk_d(ootx_decoder_context *ct, ootx_packet* packet)
b->fcalgibmag[0] = v6.fcal_0_gibmag;
b->fcalgibmag[1] = v6.fcal_1_gibmag;
b->accel[0] = accel_dir_x;
- b->accel[1] = accel_dir_x;
- b->accel[2] = accel_dir_x;
+ b->accel[1] = accel_dir_y;
+ b->accel[2] = accel_dir_z;
b->OOTXSet = 1;
config_set_lighthouse(ctx->lh_config,b,id);