aboutsummaryrefslogtreecommitdiff
path: root/apps/attitude_estimator_ekf/codegen/cross.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-19 22:36:41 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-19 22:36:41 +0200
commitefcf146b6d22600341b55283b39f8b0a846dee09 (patch)
treeb2fa5d6de973ef54361227ca92628b62cf7df5f4 /apps/attitude_estimator_ekf/codegen/cross.c
parent291f4f3a33e6428b23624b1ffe12fec1015816cd (diff)
downloadpx4-firmware-efcf146b6d22600341b55283b39f8b0a846dee09.tar.gz
px4-firmware-efcf146b6d22600341b55283b39f8b0a846dee09.tar.bz2
px4-firmware-efcf146b6d22600341b55283b39f8b0a846dee09.zip
Updated EKF filter, untested
Diffstat (limited to 'apps/attitude_estimator_ekf/codegen/cross.c')
-rwxr-xr-xapps/attitude_estimator_ekf/codegen/cross.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/attitude_estimator_ekf/codegen/cross.c b/apps/attitude_estimator_ekf/codegen/cross.c
new file mode 100755
index 000000000..49f655ece
--- /dev/null
+++ b/apps/attitude_estimator_ekf/codegen/cross.c
@@ -0,0 +1,37 @@
+/*
+ * cross.c
+ *
+ * Code generation for function 'cross'
+ *
+ * C source code generated on: Mon Sep 17 20:13:23 2012
+ *
+ */
+
+/* Include files */
+#include "rt_nonfinite.h"
+#include "attitudeKalmanfilter.h"
+#include "cross.h"
+
+/* Type Definitions */
+
+/* Named Constants */
+
+/* Variable Declarations */
+
+/* Variable Definitions */
+
+/* Function Declarations */
+
+/* Function Definitions */
+
+/*
+ *
+ */
+void cross(const real32_T a[3], const real32_T b[3], real32_T c[3])
+{
+ c[0] = a[1] * b[2] - a[2] * b[1];
+ c[1] = a[2] * b[0] - a[0] * b[2];
+ c[2] = a[0] * b[1] - a[1] * b[0];
+}
+
+/* End of code generation (cross.c) */