calculate magnitude
Merge branch 'master' of https://github.com/hoang8f/Sensor-Logger