mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 08:20:34 +08:00
PositionControl: parameter subscription declaration
This commit is contained in:
committed by
Lorenz Meier
parent
b20bd076a0
commit
10bd3a50ba
@@ -67,6 +67,7 @@ PositionControl::PositionControl()
|
||||
_ThrMax_h = param_find("MPC_THR_MAX");
|
||||
_ThrMinPosition_h = param_find("MPC_THR_MIN");
|
||||
_ThrMinStab_h = param_find("MPC_MANTHR_MIN");
|
||||
_parameter_sub = orb_subscribe(ORB_ID(parameter_update));
|
||||
|
||||
/* Set parameter the very first time. */
|
||||
_setParams();
|
||||
|
||||
Reference in New Issue
Block a user