diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-01 07:52:00 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-01 15:37:48 -0600 |
commit | 22d40fb360fdb65da7916fb87f9b199f4f401f05 (patch) | |
tree | 5a916c5c6f7bbb1fb32dc31e5f8a475de90a6838 /src/survive_process.c | |
parent | 558429f4d01462edb606fe51d592e9f9e3889425 (diff) | |
download | libsurvive-22d40fb360fdb65da7916fb87f9b199f4f401f05.tar.gz libsurvive-22d40fb360fdb65da7916fb87f9b199f4f401f05.tar.bz2 |
overhal to calibration
Diffstat (limited to 'src/survive_process.c')
-rw-r--r-- | src/survive_process.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/survive_process.c b/src/survive_process.c index 97fbc46..62459f2 100644 --- a/src/survive_process.c +++ b/src/survive_process.c @@ -51,14 +51,17 @@ void survive_default_light_process( SurviveObject * so, int sensor_id, int acode static int use_bsd_cal = -1; if(use_bsd_cal == -1) { use_bsd_cal = survive_configi(ctx, "use-bsd-cal", SC_GET, 1); + if (use_bsd_cal == 0) { + SV_INFO("Not using BSD calibration values"); + } } if(use_bsd_cal) { BaseStationData * bsd = &ctx->bsd[base_station]; - //XXX TODO: This seriously needs to be worked on. See: https://github.com/cnlohr/libsurvive/issues/18 - angle += bsd->fcalphase[axis]; + // XXX TODO: This seriously needs to be worked on. See: https://github.com/cnlohr/libsurvive/issues/18 + // angle += (use_bsd_cal == 2 ? -1 : 1) * bsd->fcal.phase[axis]; // angle += bsd->fcaltilt[axis] * predicted_angle(axis1); - + //TODO!!! } |