aboutsummaryrefslogtreecommitdiff
path: root/src/survive_disambiguator.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_disambiguator.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_disambiguator.c')
-rw-r--r--src/survive_disambiguator.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/survive_disambiguator.c b/src/survive_disambiguator.c
index 6c19475..73e61a8 100644
--- a/src/survive_disambiguator.c
+++ b/src/survive_disambiguator.c
@@ -1,19 +1,21 @@
#include "survive.h"
+#include "survive_playback.h"
#include <os_generic.h>
#include <stdio.h>
-#include "survive_playback.h"
//#define LOG_LIGHTDATA
-void handle_lightcap(SurviveObject *so, LightcapElement *le)
-{
- survive_recording_lightcap(so, le);
+void handle_lightcap(SurviveObject *so, LightcapElement *le) {
+ survive_recording_lightcap(so, le);
#ifdef LOG_LIGHTDATA
- static FILE * flog;
+ static FILE *flog;
static double start = 0;
- if( !flog ) { flog = fopen( "lightcap.txt", "wb" ); start = OGGetAbsoluteTime(); }
- fprintf( flog, "%.6f %2d %4d %9d\n", OGGetAbsoluteTime()-start, le->sensor_id, le->length, le->timestamp );
+ if (!flog) {
+ flog = fopen("lightcap.txt", "wb");
+ start = OGGetAbsoluteTime();
+ }
+ fprintf(flog, "%.6f %2d %4d %9d\n", OGGetAbsoluteTime() - start, le->sensor_id, le->length, le->timestamp);
#endif
so->ctx->lightcapfunction(so, le);
}