mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Navigator: Move mission param into mission params
This is important for the compile scope.
This commit is contained in:
parent
7ae3884944
commit
d8164377a8
@ -225,17 +225,3 @@ PARAM_DEFINE_FLOAT(MNT_OFF_ROLL, 0.0f);
|
||||
* @group Mount
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MNT_OFF_YAW, 0.0f);
|
||||
|
||||
/**
|
||||
* Enable yaw control of the mount. (Only affects multicopters and ROI mission items)
|
||||
*
|
||||
* If enabled, yaw commands will be sent to the mount and the vehicle will follow its heading mode as specified by MIS_YAWMODE.
|
||||
* If disabled, the vehicle will yaw towards the ROI.
|
||||
*
|
||||
* @value 0 Disable
|
||||
* @value 1 Enable
|
||||
* @min 0
|
||||
* @max 1
|
||||
* @group Mount
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MNT_YAW_CTL, 0);
|
||||
|
||||
@ -64,7 +64,8 @@ Mission::Mission(Navigator *navigator, const char *name) :
|
||||
_param_dist_1wp(this, "MIS_DIST_1WP", false),
|
||||
_param_dist_between_wps(this, "MIS_DIST_WPS", false),
|
||||
_param_altmode(this, "MIS_ALTMODE", false),
|
||||
_param_yawmode(this, "MIS_YAWMODE", false)
|
||||
_param_yawmode(this, "MIS_YAWMODE", false),
|
||||
_param_mnt_yaw_ctl(this, "MIS_MNT_YAW_CTL", false)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@ -134,6 +134,20 @@ PARAM_DEFINE_INT32(MIS_ALTMODE, 1);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MIS_YAWMODE, 1);
|
||||
|
||||
/**
|
||||
* Enable yaw control of the mount. (Only affects multicopters and ROI mission items)
|
||||
*
|
||||
* If enabled, yaw commands will be sent to the mount and the vehicle will follow its heading mode as specified by MIS_YAWMODE.
|
||||
* If disabled, the vehicle will yaw towards the ROI.
|
||||
*
|
||||
* @value 0 Disable
|
||||
* @value 1 Enable
|
||||
* @min 0
|
||||
* @max 1
|
||||
* @group Mission
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MIS_MNT_YAW_CTL, 0);
|
||||
|
||||
/**
|
||||
* Time in seconds we wait on reaching target heading at a waypoint if it is forced.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user