From 8ae7b4896ac1c5f703a3845e2db7634f193053fe Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Wed, 24 Oct 2018 23:52:23 -0700 Subject: Implement has impact function --- motionMonitor/motionMonitor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'motionMonitor') 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, -- cgit v1.2.3