remove unused MESSAGE_COMMAND_LIST

This commit is contained in:
Andrew Tridgell 2011-09-18 12:17:58 +10:00
parent 9baab490f1
commit 3f37cce6c7
4 changed files with 0 additions and 11 deletions

View File

@ -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
// ---------------------------------------

View File

@ -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()
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()
next_command.id = NO_COMMAND;
gcs.send_text(SEVERITY_LOW, "<process_now>");
gcs.send_message(MSG_COMMAND_LIST, g.waypoint_index);
}

View File

@ -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

View File

@ -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
// -----------------------