From c13d4424489d0791ad54fed9cfc1dff06e4a2a11 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Wed, 24 Oct 2018 22:46:49 -0700 Subject: Copy timestamps with impact vector --- motionMonitor/motionMonitor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'motionMonitor') diff --git a/motionMonitor/motionMonitor.c b/motionMonitor/motionMonitor.c index 3ded30e..89786f8 100644 --- a/motionMonitor/motionMonitor.c +++ b/motionMonitor/motionMonitor.c @@ -94,7 +94,9 @@ le_result_t brnkl_motion_getSuddenImpact(double* xAcc, double* yAcc, size_t* ySize, double* zAcc, - size_t* zSize) { + size_t* zSize, + uint64_t* timestampssOut, + size_t* timeSize) { if (!totalImpacts) LE_INFO("No Sudden Impacts to Report"); else { @@ -108,6 +110,7 @@ le_result_t brnkl_motion_getSuddenImpact(double* xAcc, xAcc[i] = xAccImpact[i]; yAcc[i] = yAccImpact[i]; zAcc[i] = zAccImpact[i]; + timestampssOut[i] = timestamps[i]; } *xSize = *ySize = *zSize = totalImpacts; -- cgit v1.2.3