Browse Source

Rover: prevent unsupported command messages

this prevents errors on DO_CHANGE_SPEED
master
Andrew Tridgell 11 years ago
parent
commit
a1b94bf852
  1. 4
      APMrover2/commands_logic.pde

4
APMrover2/commands_logic.pde

@ -161,6 +161,10 @@ static bool verify_command(const AP_Mission::Mission_Command& cmd) @@ -161,6 +161,10 @@ static bool verify_command(const AP_Mission::Mission_Command& cmd)
break;
default:
if (cmd.id > MAV_CMD_CONDITION_LAST) {
// this is a command that doesn't require verify
return true;
}
gcs_send_text_P(SEVERITY_HIGH,PSTR("verify_conditon: Unsupported command"));
return true;
break;

Loading…
Cancel
Save