aboutsummaryrefslogtreecommitdiff
path: root/src/survive_process.c
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-14 20:57:13 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-14 20:57:13 -0500
commite1e7bfbad7016e29ca3cbb4de2f93d37462ca251 (patch)
tree51498ee43cceb6587ab3c37e3f9bf048182cac54 /src/survive_process.c
parent7d28d767ec888a189a338b984062b8097b63fddd (diff)
parent23a202f50fc0f9eb9127bebaf34c48d45776a25c (diff)
downloadlibsurvive-e1e7bfbad7016e29ca3cbb4de2f93d37462ca251.tar.gz
libsurvive-e1e7bfbad7016e29ca3cbb4de2f93d37462ca251.tar.bz2
Merge github.com:cnlohr/libsurvive
Diffstat (limited to 'src/survive_process.c')
-rw-r--r--src/survive_process.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/survive_process.c b/src/survive_process.c
index d3a8c4a..184532b 100644
--- a/src/survive_process.c
+++ b/src/survive_process.c
@@ -1,15 +1,19 @@
//<>< (C) 2016 C. N. Lohr, FULLY Under MIT/x11 License.
//All MIT/x11 Licensed Code in this file may be relicensed freely under the GPL or LGPL licenses.
-#include "survive_internal.h"
+#include "survive_cal.h"
-
-int bufferpts[32*2];
-char buffermts[32*128];
-int buffertimeto[32];
+//XXX TODO: Once data is avialble in the context, use the stuff here to handle converting from time codes to
+//proper angles, then from there perform the rest of the solution.
void survive_default_light_process( struct SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length )
{
+
+ if( so->ctx->calptr )
+ {
+ survive_cal_light( so, sensor_id, acode, timeinsweep, timecode, length );
+ }
+
//TODO: Writeme!
}
@@ -18,4 +22,3 @@ void survive_default_imu_process( struct SurviveObject * so, int16_t * accelgyro
//TODO: Writeme!
}
-