CPS-Lab
/
Lab6
lab 6
report.txt@1:32862341b795, 2018-03-02 (annotated)
- Committer:
- davmalon
- Date:
- Fri Mar 02 16:43:08 2018 +0000
- Revision:
- 1:32862341b795
added lab report
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
davmalon | 1:32862341b795 | 1 | For the problem of the accelerometer detecing knocks while being suspended, |
davmalon | 1:32862341b795 | 2 | I decided to use a moving average for the lower threshold of the accelerometer to detect a knock. |
davmalon | 1:32862341b795 | 3 | so I would keep record of the last ten readings from the accelerometer, with each reading being an average of the three axis' with their respective absolute values. |
davmalon | 1:32862341b795 | 4 | and then I would compare those new reading to the moving average and if the current reading was greater than 1.5x the average, then a knock would be registered and recorded. |