Browse Source

remove unused MESSAGE_COMMAND_LIST

mission-4.1.18
Andrew Tridgell 14 years ago
parent
commit
3f37cce6c7
  1. 1
      ArduPlane/commands.pde
  2. 3
      ArduPlane/commands_process.pde
  3. 1
      ArduPlane/defines.h
  4. 6
      ArduPlane/system.pde

1
ArduPlane/commands.pde

@ -138,7 +138,6 @@ static void set_next_WP(struct Location *wp) @@ -138,7 +138,6 @@ static void set_next_WP(struct Location *wp)
//gcs.send_text_P(SEVERITY_LOW,PSTR("load WP"));
SendDebug_P("MSG - wp_index: ");
SendDebugln(g.waypoint_index, DEC);
gcs.send_message(MSG_COMMAND_LIST, g.waypoint_index);
// copy the current WP into the OldWP slot
// ---------------------------------------

3
ArduPlane/commands_process.pde

@ -118,7 +118,6 @@ static void process_next_command() @@ -118,7 +118,6 @@ static void process_next_command()
static void process_must()
{
gcs.send_text_P(SEVERITY_LOW,PSTR("New cmd: <process_must>"));
gcs.send_message(MSG_COMMAND_LIST, g.waypoint_index);
// clear May indexes
command_may_index = NO_COMMAND;
@ -135,7 +134,6 @@ static void process_must() @@ -135,7 +134,6 @@ static void process_must()
static void process_may()
{
gcs.send_text_P(SEVERITY_LOW,PSTR("<process_may>"));
gcs.send_message(MSG_COMMAND_LIST, g.waypoint_index);
command_may_ID = next_command.id;
handle_process_may();
@ -154,6 +152,5 @@ static void process_now() @@ -154,6 +152,5 @@ static void process_now()
next_command.id = NO_COMMAND;
gcs.send_text(SEVERITY_LOW, "<process_now>");
gcs.send_message(MSG_COMMAND_LIST, g.waypoint_index);
}

1
ArduPlane/defines.h

@ -123,7 +123,6 @@ @@ -123,7 +123,6 @@
#define MSG_COMMAND_REQUEST 0x20
#define MSG_COMMAND_UPLOAD 0x21
#define MSG_COMMAND_LIST 0x22
#define MSG_COMMAND_MODE_CHANGE 0x23
#define MSG_CURRENT_WAYPOINT 0x24

6
ArduPlane/system.pde

@ -272,12 +272,6 @@ static void startup_ground(void) @@ -272,12 +272,6 @@ static void startup_ground(void)
delay(GROUND_START_DELAY * 1000);
#endif
// Output waypoints for confirmation
// --------------------------------
for(int i = 1; i < g.waypoint_total + 1; i++) {
gcs.send_message(MSG_COMMAND_LIST, i);
}
// Makes the servos wiggle
// step 1 = 1 wiggle
// -----------------------

Loading…
Cancel
Save