mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-25 14:56:57 +08:00
Copter: remove unused takeoff_trigger_dz parameter
This commit is contained in:
1 parent
92970cf4ed
commit
e5b25824eb
3 files changed
+2
-10
No files matched your search
@@ -68,14 +68,6 @@ const AP_Param::Info Copter::var_info[] = {
|
||||
// @Increment: 10
|
||||
GSCALAR(pilot_takeoff_alt, "PILOT_TKOFF_ALT", PILOT_TKOFF_ALT_DEFAULT),
|
||||
|
||||
// @Param: PILOT_TKOFF_DZ
|
||||
// @DisplayName: Takeoff trigger deadzone
|
||||
// @Description: Offset from mid stick at which takeoff is triggered
|
||||
// @User: Standard
|
||||
// @Range: 0 500
|
||||
// @Increment: 10
|
||||
GSCALAR(takeoff_trigger_dz, "PILOT_TKOFF_DZ", THR_DZ_DEFAULT),
|
||||
|
||||
// @Param: PILOT_THR_BHV
|
||||
// @DisplayName: Throttle stick behavior
|
||||
// @Description: Bitmask containing various throttle stick options. TX with sprung throttle can set PILOT_THR_BHV to "1" so motor feedback when landed starts from mid-stick instead of bottom of stick.
|
||||
|
||||
@@ -207,7 +207,7 @@ public:
|
||||
k_param_ch10_option_old,
|
||||
k_param_ch11_option_old,
|
||||
k_param_ch12_option_old,
|
||||
k_param_takeoff_trigger_dz,
|
||||
k_param_takeoff_trigger_dz_old,
|
||||
k_param_gcs3,
|
||||
k_param_gcs_pid_mask, // 126
|
||||
|
||||
@@ -376,7 +376,6 @@ public:
|
||||
|
||||
AP_Float throttle_filt;
|
||||
AP_Int16 throttle_behavior;
|
||||
AP_Int16 takeoff_trigger_dz;
|
||||
AP_Float pilot_takeoff_alt;
|
||||
|
||||
AP_Int16 rtl_altitude;
|
||||
|
||||
@@ -381,6 +381,7 @@ bool Copter::Mode::_TakeOff::triggered(const float target_climb_rate) const
|
||||
// can't takeoff unless we want to go up...
|
||||
return false;
|
||||
}
|
||||
|
||||
if (copter.motors->get_spool_mode() != AP_Motors::THROTTLE_UNLIMITED) {
|
||||
// hold aircraft on the ground until rotor speed runup has finished
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user