From 61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Wed, 14 Mar 2018 23:54:14 -0400 Subject: rename nr_locations to sensor_ct Also, make it easier to see edges in calibrate. --- src/survive_cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/survive_cal.c') 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) -- cgit v1.2.3