this costs some flash space but speeds things up considerably
@ -17,6 +17,8 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma GCC optimize("O3")
#include "AP_Math.h"
// create a rotation matrix given some euler angles
@ -1,3 +1,5 @@
#include <AP_Math/AP_Math.h>
#include <AP_HAL/AP_HAL.h>
// return the rotation matrix equivalent for this quaternion
template <typename T>
#define HALF_SQRT_2 0.70710678118654757f