Help me extract pitch/roll values

Topics and questions about AMC, h-bridges, JRK's etc.

Help me extract pitch/roll values

Postby renovatio » Mon 17. Nov 2014, 19:52

Hello, I am using Link2fs in order to extract the pitch / roll.

What I want to do is to control 2 steppers to freely rotate a small model cockpit in roll and pitch axis.

The problem is that the pitch values are ranging form 90 to -90 ( -90 if plane climbs , 90 if plane sinks) .
However if plane is climbing at 45deg. , the pitch value is -45. If the plane is climbing inverted at 45, the value is again -45, making it unable to determine if the plane is inverted or not.

Is there some way to convert the export pitch value from 0 to 360 degrees , so that I can directly export that value ?
Or some way to identify if the plane is inverted ?

Thank you.
renovatio
 
Posts: 1
Joined: Mon 17. Nov 2014, 19:37
Has thanked: 0 time
Been thanked: 0 time

Return to Controllers and Drivers

Who is online

Users browsing this forum: No registered users and 14 guests

cron