mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 10:01:36 +08:00
mc_pos_control: enable flight tasks
instantiate flight tasks and the refactored position controller class only use the new functionality if a temporary parameter is set for testing
This commit is contained in:
@@ -589,3 +589,15 @@ PARAM_DEFINE_FLOAT(MPC_LAND_ALT2, 5.0f);
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_TKO_RAMP_T, 0.4f);
|
||||
|
||||
/**
|
||||
* Flag to test flight tasks instead of legacy functionality
|
||||
* Temporary Parameter during the transition to flight tasks
|
||||
*
|
||||
* @min 0
|
||||
* @max 1
|
||||
* @value 0 Legacy Functionality
|
||||
* @value 1 Test flight tasks
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MPC_FLT_TSK, 0);
|
||||
|
||||
Reference in New Issue
Block a user