diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-10-24 23:52:23 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-10-25 09:10:42 -0700 |
commit | 8ae7b4896ac1c5f703a3845e2db7634f193053fe (patch) | |
tree | fabbc959eb39b9c2a95f6fe07ee7d5ed51b677b7 /motionMonitor | |
parent | ea041796852f4ecdff4b3b604cf3aacdd75389db (diff) |
Implement has impact function
Diffstat (limited to 'motionMonitor')
-rw-r--r-- | motionMonitor/motionMonitor.c | 4 |
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, |