From b1730b67e452d7374bced06a07bf48d5466b6a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 22 May 2017 11:01:24 +0200 Subject: [PATCH] mission: keep 'offboard mission updated' printf as a warning Useful to see when a in-flight mission update happens from the log. --- src/modules/navigator/mission.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/navigator/mission.cpp b/src/modules/navigator/mission.cpp index b83a96f7d1..653825d64f 100644 --- a/src/modules/navigator/mission.cpp +++ b/src/modules/navigator/mission.cpp @@ -329,6 +329,9 @@ Mission::update_offboard_mission() bool failed = true; if (orb_copy(ORB_ID(offboard_mission), _navigator->get_offboard_mission_sub(), &_offboard_mission) == OK) { + // The following is not really a warning, but it can be useful to have this message in the log file + PX4_WARN("offboard mission updated: dataman_id=%d, count=%d, current_seq=%d", _offboard_mission.dataman_id, + _offboard_mission.count, _offboard_mission.current_seq); /* determine current index */ if (_offboard_mission.current_seq >= 0 && _offboard_mission.current_seq < (int)_offboard_mission.count) {