float update

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1626 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-02-10 07:14:27 +00:00
parent fe9bd03d20
commit 8558f9125c

View File

@ -53,7 +53,7 @@ float angle_boost()
//static byte flipper;
//float temp = 1 / (cos(dcm.roll) * cos(dcm.pitch));
float temp = cos(dcm.roll) * cos(dcm.pitch);
temp = 2.0 - constrain(temp, .7071, 1);
temp = 2.0 - constrain(temp, .7071, 1.0);
return temp;
}