a2pr function

Pitch and roll from acceleration