find degree heading using capacitor motion plugin

Job ID: 36351884

Budget: $10 – $30 USD

I am looking for a freelancer to create a quality mathematic function using the sensor data returned from Capacitors Motion plugin. Link Below

https://capacitorjs.com/docs/apis/motion

This is not going to be as easy as copying and pasting a function from the web. All the functions work in only one orientation. This function has to return the degree heading while making adjustments for all the different orientations, laying flat and everywhere in between.
Related categories: JavaScript Mathematics Ionic Framework