Bug in getEstimatedAttitude

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
User avatar
ciskje
Posts: 34
Joined: Sat Mar 26, 2011 12:24 am

Bug in getEstimatedAttitude

Post by ciskje »

last line is:
for (axis=0;axis<2;axis++) angle[axis] = A[axis]*570.29577951; //angle in multiple of 0.1 degree

but 180/M_PI is 57.29

so the line must be:
for (axis=0;axis<2;axis++) angle[axis] = A[axis]*572.9577951; //angle in multiple of 0.1 degree

User avatar
ciskje
Posts: 34
Joined: Sat Mar 26, 2011 12:24 am

Re: Bug in getEstimatedAttitude

Post by ciskje »

This can cause an angle jump.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: Bug in getEstimatedAttitude

Post by Alexinparis »

right, it's a small bug ;)
but why an angle jump ?

Post Reply