From 0ac1ef12c77ef5a0db05d22bab4cfbd61b0c24a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 26 Jun 2018 15:51:17 +0200 Subject: [PATCH] gpssim: unadvertise gps topics --- src/modules/simulator/gpssim/gpssim.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/simulator/gpssim/gpssim.cpp b/src/modules/simulator/gpssim/gpssim.cpp index 322ab75d5f..20a1b98e6c 100644 --- a/src/modules/simulator/gpssim/gpssim.cpp +++ b/src/modules/simulator/gpssim/gpssim.cpp @@ -355,6 +355,14 @@ GPSSIM::task_main() } } + if (_report_gps_pos_pub) { + orb_unadvertise(_report_gps_pos_pub); + } + + if (_report_sat_info_pub) { + orb_unadvertise(_report_sat_info_pub); + } + PX4_INFO("exiting"); /* tell the dtor that we are exiting */