diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-04-23 12:36:26 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-04-23 12:36:26 +0200 |
commit | 3ecdca41e504cbf49b03fb543239813886590bd1 (patch) | |
tree | a98302877a32ece9a271a5bbfc56d2ffba2993a2 /src/modules/attitude_estimator_ekf/codegen/rdivide.c | |
parent | c52278f67942733ac3d462e8a91a01b22b913d40 (diff) | |
download | px4-firmware-3ecdca41e504cbf49b03fb543239813886590bd1.tar.gz px4-firmware-3ecdca41e504cbf49b03fb543239813886590bd1.tar.bz2 px4-firmware-3ecdca41e504cbf49b03fb543239813886590bd1.zip |
Cut over attitude estimator to new-style config for all boards
Diffstat (limited to 'src/modules/attitude_estimator_ekf/codegen/rdivide.c')
-rwxr-xr-x | src/modules/attitude_estimator_ekf/codegen/rdivide.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/modules/attitude_estimator_ekf/codegen/rdivide.c b/src/modules/attitude_estimator_ekf/codegen/rdivide.c new file mode 100755 index 000000000..d035dae5e --- /dev/null +++ b/src/modules/attitude_estimator_ekf/codegen/rdivide.c @@ -0,0 +1,38 @@ +/*
+ * rdivide.c
+ *
+ * Code generation for function 'rdivide'
+ *
+ * C source code generated on: Sat Jan 19 15:25:29 2013
+ *
+ */
+
+/* Include files */
+#include "rt_nonfinite.h"
+#include "attitudeKalmanfilter.h"
+#include "rdivide.h"
+
+/* Type Definitions */
+
+/* Named Constants */
+
+/* Variable Declarations */
+
+/* Variable Definitions */
+
+/* Function Declarations */
+
+/* Function Definitions */
+
+/*
+ *
+ */
+void rdivide(const real32_T x[3], real32_T y, real32_T z[3])
+{
+ int32_T i;
+ for (i = 0; i < 3; i++) {
+ z[i] = x[i] / y;
+ }
+}
+
+/* End of code generation (rdivide.c) */
|