kentaylor / AvocadoAC

Inspired by Chris Smith's project this application does classification differently, logs classifications in a local database and maintains an online repository of activities.
https://github.com/kentaylor/ContextApi/wiki/Classification-Update
5 stars 5 forks source link

Rotation algorithm failing sometimes #52

Closed kentaylor closed 13 years ago

kentaylor commented 13 years ago

The rotation of axes to vertical and horizontal fails when initial measured is close to -gravity.

umranium commented 13 years ago

Fixed. Extracted horizontal component needed normalizing before being passed to SensorManager.getRotationMatrix(...)