aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/control/test_params.c
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-01-06 13:58:52 -0800
committerpx4dev <px4@purgatory.org>2013-01-06 13:58:52 -0800
commit950d104c8d7e335b88c0a7944628c14293a0f676 (patch)
tree958eb5dc90b8000067f2f247692497d650dad822 /apps/systemlib/control/test_params.c
parent43ccb257a8a60a24b81396dfbf7841917db3f74e (diff)
parent8888b73e160520e5b15e168998013f4a5f6e64c0 (diff)
downloadpx4-firmware-950d104c8d7e335b88c0a7944628c14293a0f676.tar.gz
px4-firmware-950d104c8d7e335b88c0a7944628c14293a0f676.tar.bz2
px4-firmware-950d104c8d7e335b88c0a7944628c14293a0f676.zip
Merge commit '8888b73e160520e5b15e168998013f4a5f6e64c0' into local/mathlib
Diffstat (limited to 'apps/systemlib/control/test_params.c')
-rw-r--r--apps/systemlib/control/test_params.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/systemlib/control/test_params.c b/apps/systemlib/control/test_params.c
new file mode 100644
index 000000000..7c609cad3
--- /dev/null
+++ b/apps/systemlib/control/test_params.c
@@ -0,0 +1,22 @@
+#include <systemlib/param/param.h>
+// WARNING:
+// do not changes these unless
+// you want to recompute the
+// answers for all of the unit tests
+
+PARAM_DEFINE_FLOAT(TEST_MIN, -1.0f);
+PARAM_DEFINE_FLOAT(TEST_MAX, 1.0f);
+PARAM_DEFINE_FLOAT(TEST_TRIM, 0.5f);
+PARAM_DEFINE_FLOAT(TEST_HP, 10.0f);
+PARAM_DEFINE_FLOAT(TEST_LP, 10.0f);
+
+PARAM_DEFINE_FLOAT(TEST_P, 0.2f);
+
+PARAM_DEFINE_FLOAT(TEST_I, 0.1f);
+PARAM_DEFINE_FLOAT(TEST_I_MAX, 1.0f);
+
+PARAM_DEFINE_FLOAT(TEST_D, 0.01f);
+PARAM_DEFINE_FLOAT(TEST_D_LP, 10.0f);
+
+PARAM_DEFINE_FLOAT(TEST_MEAN, 1.0f);
+PARAM_DEFINE_FLOAT(TEST_DEV, 2.0f);