mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 06:40:35 +08:00
commander: add missing px4_close (#8513)
This commit is contained in:
@@ -2221,7 +2221,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||
|
||||
/* Check estimator status for signs of bad yaw induced post takeoff navigation failure
|
||||
* for a short time interval after takeoff. Fixed wing vehicles can recover using GPS heading,
|
||||
* but rotary wing vehicles cannot so the position and velocity validity needs to be latched
|
||||
* but rotary wing vehicles cannot so the position and velocity validity needs to be latched
|
||||
* to false after failure to prevent flyaway crashes */
|
||||
if (run_quality_checks && status.is_rotary_wing) {
|
||||
bool estimator_status_updated = false;
|
||||
@@ -3364,6 +3364,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||
px4_close(param_changed_sub);
|
||||
px4_close(battery_sub);
|
||||
px4_close(land_detector_sub);
|
||||
px4_close(estimator_status_sub);
|
||||
|
||||
thread_running = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user