APM: show waypoint number in jump message

This commit is contained in:
Andrew Tridgell 2012-08-14 16:54:08 +10:00
parent 92bdc23ab6
commit ff6301fb46

View File

@ -487,9 +487,10 @@ static void do_loiter_at_location()
static void do_jump()
{
struct Location temp;
gcs_send_text_fmt(PSTR("In jump. Jumps left: %i"),next_nonnav_command.lat);
gcs_send_text_fmt(PSTR("Jump to WP %u. Jumps left: %d"),
(unsigned)next_nonnav_command.p1,
(int)next_nonnav_command.lat);
if (next_nonnav_command.lat > 0) {
nav_command_ID = NO_COMMAND;
next_nav_command.id = NO_COMMAND;
non_nav_command_ID = NO_COMMAND;