summaryrefslogtreecommitdiff
path: root/motionMonitor/motionMonitor.c
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2018-10-24 23:52:23 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2018-10-25 09:10:42 -0700
commit8ae7b4896ac1c5f703a3845e2db7634f193053fe (patch)
treefabbc959eb39b9c2a95f6fe07ee7d5ed51b677b7 /motionMonitor/motionMonitor.c
parentea041796852f4ecdff4b3b604cf3aacdd75389db (diff)
Implement has impact function
Diffstat (limited to 'motionMonitor/motionMonitor.c')
-rw-r--r--motionMonitor/motionMonitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/motionMonitor/motionMonitor.c b/motionMonitor/motionMonitor.c
index 8f72c47..ce557a1 100644
--- a/motionMonitor/motionMonitor.c
+++ b/motionMonitor/motionMonitor.c
@@ -82,6 +82,10 @@ le_result_t recordImpact(struct suddenImpacts_t* it,
return LE_OK;
}
+int8_t brnkl_motion_hasSuddenImpact() {
+ return impacts.nValues > 0;
+}
+
le_result_t brnkl_motion_getSuddenImpact(double* xAcc,
size_t* xSize,
double* yAcc,