1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00
LibrePilot/flight/OpenPilot/Modules/Stabilization
andrew 65dc5e9b04 Yaw stabilisation for the simple algorithm was calculating the error and not taking into account that 350º error is the same as -10º error.
The resultant error could range from -360º -> +360º
Since this is only used for Helicopters / multi rotors, and the aircraft can rotate in any direction, I added the modulo logic so that it is now from -180º -> +180º this should now take quickest path to correct the error.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1464 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-30 01:20:43 +00:00
..
experimental/Stabilization First attempt at ccpm mixing for single rotor helicopter. 2010-08-26 06:00:57 +00:00
simple/Stabilization Yaw stabilisation for the simple algorithm was calculating the error and not taking into account that 350º error is the same as -10º error. 2010-08-30 01:20:43 +00:00