aboutsummaryrefslogtreecommitdiff
path: root/src/poser_daveortho.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-01 16:04:05 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-01 16:09:58 -0600
commit1724abef15a4090640bd82ba408681438316de7e (patch)
tree129d3eeaabe9d6e011897b33e8d8a2acaaae3ac9 /src/poser_daveortho.c
parent5384af65f9d63d095cb9987d36de57ccee323300 (diff)
downloadlibsurvive-1724abef15a4090640bd82ba408681438316de7e.tar.gz
libsurvive-1724abef15a4090640bd82ba408681438316de7e.tar.bz2
Made calibration on other posers use calibration data
Diffstat (limited to 'src/poser_daveortho.c')
-rw-r--r--src/poser_daveortho.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/poser_daveortho.c b/src/poser_daveortho.c
index c47bceb..9cdab45 100644
--- a/src/poser_daveortho.c
+++ b/src/poser_daveortho.c
@@ -1,12 +1,13 @@
+#include "linmath.h"
#include "survive_cal.h"
+#include <dclapack.h>
+#include <linmath.h>
#include <math.h>
-#include <string.h>
-#include "linmath.h"
-#include <survive.h>
#include <stdio.h>
#include <stdlib.h>
-#include <dclapack.h>
-#include <linmath.h>
+#include <string.h>
+#include <survive.h>
+#include <survive_reproject.h>
// Dave talks about this poser here: https://www.youtube.com/watch?v=nSbEltdH9vM&feature=youtu.be&t=2h29m47s
@@ -139,8 +140,10 @@ int PoserDaveOrtho( SurviveObject * so, PoserData * pd )
//Load all our valid points into something the LHFinder can use.
if( fs->lengths[i][LH_ID][0] > 0 )
{
- S_in[0][max_hits] = fs->angles[i][LH_ID][0];
- S_in[1][max_hits] = fs->angles[i][LH_ID][1];
+ FLT out[2];
+ survive_apply_bsd_calibration(ctx, LH_ID, fs->angles[i][LH_ID], out);
+ S_in[0][max_hits] = out[0];
+ S_in[1][max_hits] = out[1];
X_in[0][max_hits] = so->sensor_locations[i*3+0];
X_in[1][max_hits] = so->sensor_locations[i*3+1];
X_in[2][max_hits] = so->sensor_locations[i*3+2];