diff options
| author | dragonprevost <dragon@dkp.io> | 2018-11-13 11:58:07 -0800 | 
|---|---|---|
| committer | dragonprevost <dragon@dkp.io> | 2018-11-13 11:58:07 -0800 | 
| commit | f5725d13ef13953ffdb1c430e64b7c382aeb8285 (patch) | |
| tree | becd1b9d98207dafb3341d0d232c181bd18353ac /readme.md | |
| parent | 94ba7c621dffcc373c2ced094badc96042853525 (diff) | |
image formatting
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 9 | 
1 files changed, 5 insertions, 4 deletions
| @@ -13,13 +13,14 @@ Compile the project using  wp85: 	``make wp85``  ## Setting Variables -To change the sensitivity of the application you must edit the `motionMonitor/motionMonitor.c` file. +To change the sensitivity of impact detection you must edit the `motionMonitor/motionMonitor.c` file.  The Accelerometer measures acceleration in 3 dimensions, X, Y, and Z. These dimensions of acceleration are recorded and the magnitude of their resulting vector is calculated using ``double impactMagnitude = sqrt(x * x + y * y + z * z);`` + + + +  `#define DEFAULT_THRESHOLD_MS2 17` determines the magnitude of the resulting vector that will trigger the application to detect a sudden impact.   If adjusting the value of `DEFAUTL_THRESHOLD_MS2` keep in mind that gravity implies a motionless magnitude of -9.8m/s^2  As visualized with the red vector here.  - - - | 
