summaryrefslogtreecommitdiff
path: root/motionMonitor
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2018-10-24 22:46:49 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2018-10-24 22:46:49 -0700
commitc13d4424489d0791ad54fed9cfc1dff06e4a2a11 (patch)
tree73d5f467051ab6241615da599b7bed35ff380526 /motionMonitor
parente2a584ccb925e1f2657d2f9757ab0f5d657d8aba (diff)
Copy timestamps with impact vector
Diffstat (limited to 'motionMonitor')
-rw-r--r--motionMonitor/motionMonitor.c5
1 files changed, 4 insertions, 1 deletions
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;