Browse Source

Plane: remove unused WAIT_COMMAND

master
Randy Mackay 11 years ago
parent
commit
0827506533
  1. 4
      ArduPlane/commands_logic.pde
  2. 7
      ArduPlane/defines.h

4
ArduPlane/commands_logic.pde

@ -210,10 +210,6 @@ static bool verify_command(const AP_Mission::Mission_Command& cmd) // Ret
return verify_change_alt(); return verify_change_alt();
break; break;
case WAIT_COMMAND:
return false;
break;
// do commands (always return true) // do commands (always return true)
case MAV_CMD_DO_CHANGE_SPEED: case MAV_CMD_DO_CHANGE_SPEED:
case MAV_CMD_DO_SET_HOME: case MAV_CMD_DO_SET_HOME:

7
ArduPlane/defines.h

@ -95,13 +95,6 @@ enum ChannelMixing {
MIXING_DNDN = 4 MIXING_DNDN = 4
}; };
// Commands - Note that APM now uses a subset of the MAVLink protocol
// commands. See enum MAV_CMD in the GCS_Mavlink library
#define CMD_BLANK 0 // there is no command stored in the mem location
// requested
#define NO_COMMAND 0
#define WAIT_COMMAND 255
//repeating events //repeating events
#define NO_REPEAT 0 #define NO_REPEAT 0

Loading…
Cancel
Save