commander: add missing px4_close (#8513)

This commit is contained in:
Paul Riseborough
2017-12-22 08:57:06 +11:00
committed by GitHub
parent ec57832a8f
commit 176738c688
+2 -1
View File
@@ -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;