AP_Mission: show tag or jump index on WP change
This commit is contained in:
parent
62aee72820
commit
932ed9ff28
@ -397,7 +397,12 @@ bool AP_Mission::start_command(const Mission_Command& cmd)
|
|||||||
set_in_landing_sequence_flag(false);
|
set_in_landing_sequence_flag(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cmd.id == MAV_CMD_DO_JUMP || cmd.id == MAV_CMD_JUMP_TAG || cmd.id == MAV_CMD_DO_JUMP_TAG) {
|
||||||
|
gcs().send_text(MAV_SEVERITY_INFO, "Mission: %u %s %u", cmd.index, cmd.type(), (unsigned)cmd.p1);
|
||||||
|
} else {
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Mission: %u %s", cmd.index, cmd.type());
|
gcs().send_text(MAV_SEVERITY_INFO, "Mission: %u %s", cmd.index, cmd.type());
|
||||||
|
}
|
||||||
|
|
||||||
switch (cmd.id) {
|
switch (cmd.id) {
|
||||||
case MAV_CMD_DO_AUX_FUNCTION:
|
case MAV_CMD_DO_AUX_FUNCTION:
|
||||||
return start_command_do_aux_function(cmd);
|
return start_command_do_aux_function(cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user