aboutsummaryrefslogtreecommitdiff
path: root/src/survive_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/survive_process.c')
-rw-r--r--src/survive_process.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/survive_process.c b/src/survive_process.c
index e013327..abde02d 100644
--- a/src/survive_process.c
+++ b/src/survive_process.c
@@ -49,20 +49,20 @@ void survive_default_light_process( SurviveObject * so, int sensor_id, int acode
//Need to now do angle correction.
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 == -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];
+ 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 += (use_bsd_cal == 2 ? -1 : 1) * bsd->fcal.phase[axis];
- // angle += bsd->fcaltilt[axis] * predicted_angle(axis1);
+ // 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!!!
+ // TODO!!!
}
FLT length_sec = length / (FLT)so->timebase_hz;