I wish to use an accelerometer to measure the angle of a rocket launcher (model, that is!) and display the result as degrees (sort of digital spirit level). I am using a +/- 1G accelerometer that give 5V out for 9.81ms-2. So to get the angle I need to take the cosine of the acceleration. I see that in PBP there is a SINe command, but am not to sure how to use it. It also has the additional problem of being in radians! Can anyone help?
Bookmarks