aboutsummaryrefslogtreecommitdiff
path: root/apps/examples/control_demo/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/control_demo/params.c')
-rw-r--r--apps/examples/control_demo/params.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/examples/control_demo/params.c b/apps/examples/control_demo/params.c
index 8db61d4d4..527709629 100644
--- a/apps/examples/control_demo/params.c
+++ b/apps/examples/control_demo/params.c
@@ -58,7 +58,14 @@ PARAM_DEFINE_FLOAT(FWB_V_MAX, 16.0f); // maximum commanded velocity
// rate of climb
// this is what rate of climb is commanded (in m/s)
-// when the throttle stick is fully defelcted in simple mode
+// when the pitch stick is fully defelcted in simple mode
PARAM_DEFINE_FLOAT(FWB_ROC_MAX, 1.0f);
+// rate of climb -> thr
+PARAM_DEFINE_FLOAT(FWB_ROC2THR_P, 0.01f); // altitude to throttle PID
+PARAM_DEFINE_FLOAT(FWB_ROC2THR_I, 0.0f);
+PARAM_DEFINE_FLOAT(FWB_ROC2THR_D, 0.0f);
+PARAM_DEFINE_FLOAT(FWB_ROC2THR_D_LP, 0.0f);
+PARAM_DEFINE_FLOAT(FWB_ROC2THR_I_MAX, 0.0f);
+
PARAM_DEFINE_FLOAT(FWB_TRIM_THR, 0.8f); // trim throttle (0,1)