aboutsummaryrefslogtreecommitdiff
path: root/src/survive_process.c
diff options
context:
space:
mode:
authorCNLohr <charles@cnlohr.com>2018-04-04 02:27:42 -0400
committerGitHub <noreply@github.com>2018-04-04 02:27:42 -0400
commitce6322b6b604b12018a2daf427dbd36afc5fbda2 (patch)
tree5929c2793c33c80e5392982a9baaa8d5ccaca724 /src/survive_process.c
parent6a45298c9bc34aac59cc2ebb9de2d82c7a42756e (diff)
parentc7d9d271796b20f886e2441de852498ecb25ca82 (diff)
downloadlibsurvive-ce6322b6b604b12018a2daf427dbd36afc5fbda2.tar.gz
libsurvive-ce6322b6b604b12018a2daf427dbd36afc5fbda2.tar.bz2
Merge pull request #122 from cnlohr/imu
Imu
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;