From 6f79a8c37c65e542072b9089ab29aeca57371fbd Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 27 Sep 2016 11:01:25 +0200 Subject: [PATCH] Arducopter: simply invalid cmd msg --- ArduCopter/commands_logic.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ArduCopter/commands_logic.cpp b/ArduCopter/commands_logic.cpp index ebf1aacad4..09d55bfa02 100644 --- a/ArduCopter/commands_logic.cpp +++ b/ArduCopter/commands_logic.cpp @@ -256,11 +256,7 @@ bool Copter::verify_command(const AP_Mission::Mission_Command& cmd) default: // error message - if (AP_Mission::is_nav_cmd(cmd)) { - gcs_send_text(MAV_SEVERITY_WARNING,"Verify nav. Invalid or no current nav cmd"); - }else{ - gcs_send_text(MAV_SEVERITY_WARNING,"Verify condition. Invalid or no current condition cmd"); - } + gcs_send_text_fmt(MAV_SEVERITY_WARNING,"Skipping invalid cmd #%i",cmd.id); // return true if we do not recognize the command so that we move on to the next command return true; }