mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:23:34 +08:00
commander: remove unused SYS_AUTOSTART param
This commit is contained in:
@@ -182,9 +182,6 @@ static orb_advert_t mavlink_log_pub = nullptr;
|
|||||||
|
|
||||||
static orb_advert_t power_button_state_pub = nullptr;
|
static orb_advert_t power_button_state_pub = nullptr;
|
||||||
|
|
||||||
/* System autostart ID */
|
|
||||||
static int autostart_id;
|
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
static bool commander_initialized = false;
|
static bool commander_initialized = false;
|
||||||
static volatile bool thread_should_exit = false; /**< daemon exit flag */
|
static volatile bool thread_should_exit = false; /**< daemon exit flag */
|
||||||
@@ -1322,7 +1319,6 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
param_t _param_ef_throttle_thres = param_find("COM_EF_THROT");
|
param_t _param_ef_throttle_thres = param_find("COM_EF_THROT");
|
||||||
param_t _param_ef_current2throttle_thres = param_find("COM_EF_C2T");
|
param_t _param_ef_current2throttle_thres = param_find("COM_EF_C2T");
|
||||||
param_t _param_ef_time_thres = param_find("COM_EF_TIME");
|
param_t _param_ef_time_thres = param_find("COM_EF_TIME");
|
||||||
param_t _param_autostart_id = param_find("SYS_AUTOSTART");
|
|
||||||
param_t _param_rc_in_off = param_find("COM_RC_IN_MODE");
|
param_t _param_rc_in_off = param_find("COM_RC_IN_MODE");
|
||||||
param_t _param_rc_arm_hyst = param_find("COM_RC_ARM_HYST");
|
param_t _param_rc_arm_hyst = param_find("COM_RC_ARM_HYST");
|
||||||
param_t _param_min_stick_change = param_find("COM_RC_STICK_OV");
|
param_t _param_min_stick_change = param_find("COM_RC_STICK_OV");
|
||||||
@@ -1701,7 +1697,6 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
int32_t rc_in_off = 0;
|
int32_t rc_in_off = 0;
|
||||||
bool hotplug_timeout = hrt_elapsed_time(&commander_boot_timestamp) > HOTPLUG_SENS_TIMEOUT;
|
bool hotplug_timeout = hrt_elapsed_time(&commander_boot_timestamp) > HOTPLUG_SENS_TIMEOUT;
|
||||||
|
|
||||||
param_get(_param_autostart_id, &autostart_id);
|
|
||||||
param_get(_param_rc_in_off, &rc_in_off);
|
param_get(_param_rc_in_off, &rc_in_off);
|
||||||
|
|
||||||
int32_t arm_switch_is_button = 0;
|
int32_t arm_switch_is_button = 0;
|
||||||
@@ -1875,9 +1870,6 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
param_get(_param_arm_mission_required, &arm_mission_required_param);
|
param_get(_param_arm_mission_required, &arm_mission_required_param);
|
||||||
arm_requirements |= (arm_mission_required_param & (ARM_REQ_MISSION_BIT | ARM_REQ_ARM_AUTH_BIT));
|
arm_requirements |= (arm_mission_required_param & (ARM_REQ_MISSION_BIT | ARM_REQ_ARM_AUTH_BIT));
|
||||||
|
|
||||||
/* Autostart id */
|
|
||||||
param_get(_param_autostart_id, &autostart_id);
|
|
||||||
|
|
||||||
/* EPH / EPV */
|
/* EPH / EPV */
|
||||||
param_get(_param_eph, &eph_threshold);
|
param_get(_param_eph, &eph_threshold);
|
||||||
param_get(_param_epv, &epv_threshold);
|
param_get(_param_epv, &epv_threshold);
|
||||||
|
|||||||
Reference in New Issue
Block a user