Browse Source

Copter: reject change_command if not in AUTO

mission-4.1.18
Randy Mackay 11 years ago
parent
commit
57b291b1c5
  1. 5
      ArduCopter/commands_process.pde

5
ArduCopter/commands_process.pde

@ -4,6 +4,11 @@ @@ -4,6 +4,11 @@
//----------------------------------------
static void change_command(uint8_t cmd_index)
{
// check we are in AUTO mode
if (control_mode != AUTO) {
return;
}
// limit range
cmd_index = min(g.command_total - 1, cmd_index);

Loading…
Cancel
Save