Hello, I am currently working on a project which involves pulling data from a specific axis of a phones accelerometer and feeding that data into an algorithm that yields relevant results to the project. Currently the results are not desirable because the data pulled from the device creates a sine wave which results in non uniform output values per unit of rotation.
The graph below shows what the current input is (blue) as well as what I am needing to convert that input to (orange) before feeding it into my algorithm.
My question is: How do I linearize the original input that is creating the sine wave?
Attached is the rough data set per 5 degrees of rotation in an .xlsx.
Please let me know if anything is unclear or if more information is needed, any direction given will be appreciated.
(apologies if my syntax is incorrect)
Thanks in advance,
Your friendly neighborhood Space Ninja
[attachment=0:3bqqb3u6]360ActualCombined.png[/attachment:3bqqb3u6]
The graph below shows what the current input is (blue) as well as what I am needing to convert that input to (orange) before feeding it into my algorithm.
My question is: How do I linearize the original input that is creating the sine wave?
Attached is the rough data set per 5 degrees of rotation in an .xlsx.
Please let me know if anything is unclear or if more information is needed, any direction given will be appreciated.
(apologies if my syntax is incorrect)
Thanks in advance,
Your friendly neighborhood Space Ninja
[attachment=0:3bqqb3u6]360ActualCombined.png[/attachment:3bqqb3u6]
Attachments

9.6 KB Views: 15

76.5 KB Views: 505