mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Copter: hide PLDP_* params when payload place is disabled
This commit is contained in:
committed by
Randy Mackay
parent
a239d1ee90
commit
ca54fb31b4
@@ -1068,6 +1068,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
||||
*/
|
||||
const AP_Param::GroupInfo ParametersG2::var_info2[] = {
|
||||
|
||||
#if AC_PAYLOAD_PLACE_ENABLED
|
||||
// @Param: PLDP_THRESH
|
||||
// @DisplayName: Payload Place thrust ratio threshold
|
||||
// @Description: Ratio of vertical thrust during decent below which payload touchdown will trigger.
|
||||
@@ -1098,6 +1099,7 @@ const AP_Param::GroupInfo ParametersG2::var_info2[] = {
|
||||
// @Range: 0 5
|
||||
// @User: Standard
|
||||
AP_GROUPINFO("PLDP_SPEED_DN", 4, ParametersG2, pldp_descent_speed_ms, 0.0),
|
||||
#endif // AC_PAYLOAD_PLACE_ENABLED
|
||||
|
||||
// @Param: SURFTRAK_TC
|
||||
// @DisplayName: Surface Tracking Filter Time Constant
|
||||
|
||||
@@ -679,11 +679,13 @@ public:
|
||||
AC_WeatherVane weathervane;
|
||||
#endif
|
||||
|
||||
#if AC_PAYLOAD_PLACE_ENABLED
|
||||
// payload place parameters
|
||||
AP_Float pldp_thrust_placed_fraction;
|
||||
AP_Float pldp_range_finder_maximum_m;
|
||||
AP_Float pldp_delay_s;
|
||||
AP_Float pldp_descent_speed_ms;
|
||||
#endif // AC_PAYLOAD_PLACE_ENABLED
|
||||
|
||||
AP_Int8 att_enable;
|
||||
AP_Int8 att_decimation;
|
||||
|
||||
Reference in New Issue
Block a user