summaryrefslogtreecommitdiff
path: root/motionMonitor
diff options
context:
space:
mode:
Diffstat (limited to 'motionMonitor')
-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,