diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-25 09:03:48 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 09:07:53 +0200 |
commit | 3f8c81433e4cbc6726303c5b4bde28a97b32668e (patch) | |
tree | 84834a450bb97e51f412ffd8a3e3d6f34358a412 /src/modules | |
parent | d3261069806e3ecb9627f273fcb58c68e5523ac7 (diff) | |
download | px4-firmware-3f8c81433e4cbc6726303c5b4bde28a97b32668e.tar.gz px4-firmware-3f8c81433e4cbc6726303c5b4bde28a97b32668e.tar.bz2 px4-firmware-3f8c81433e4cbc6726303c5b4bde28a97b32668e.zip |
commander: Provide more useful mission feedback
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/commander/commander.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 54de05192..5eb0ab6ec 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -945,10 +945,10 @@ int commander_thread_main(int argc, char *argv[]) if (dm_read(DM_KEY_MISSION_STATE, 0, &mission, sizeof(mission_s)) == sizeof(mission_s)) { if (mission.dataman_id >= 0 && mission.dataman_id <= 1) { - warnx("loaded mission state: dataman_id=%d, count=%u, current=%d", mission.dataman_id, mission.count, - mission.current_seq); - mavlink_log_info(mavlink_fd, "[cmd] dataman_id=%d, count=%u, current=%d", - mission.dataman_id, mission.count, mission.current_seq); + if (mission.count > 0) { + mavlink_log_info(mavlink_fd, "[cmd] Mission #%d loaded, %u WPs, curr: %d", + mission.dataman_id, mission.count, mission.current_seq); + } } else { const char *missionfail = "reading mission state failed"; |