Copter: hide PLDP_* params when payload place is disabled

This commit is contained in:
Tatsuya Yamaguchi
2026-01-23 16:07:31 -05:00
committed by Randy Mackay
parent a239d1ee90
commit ca54fb31b4
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -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;