aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-14 23:54:14 -0400
committercnlohr <lohr85@gmail.com>2018-03-14 23:54:14 -0400
commit61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032 (patch)
treed5e4efd164d0001bb2545a2ff829c2ab201c0296 /src/survive_cal.c
parent3681b5df3cf518b0ded815d93cb45b176aea7440 (diff)
downloadlibsurvive-61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032.tar.gz
libsurvive-61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032.tar.bz2
rename nr_locations to sensor_ct
Also, make it easier to see edges in calibrate.
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index fb3b240..2fd96ef 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -655,7 +655,7 @@ static void handle_calibration( struct SurviveCalData *cd )
FLT reproj_err = 0;
size_t cnt = 0;
SurviveObject *so = cd->poseobjects[obj];
- for (size_t idx = 0; idx < so->nr_locations; idx++) {
+ for (size_t idx = 0; idx < so->sensor_ct; idx++) {
FLT *lengths = fsd.lengths[idx][lh];
FLT *pt = fsd.angles[idx][lh];
if (lengths[0] < 0 || lengths[1] < 0)