mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
float update
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1626 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
fe9bd03d20
commit
8558f9125c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user