mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Plane: show next wp when not running a mission
this lets the GCS know what wp would be run if auto mode is selected
This commit is contained in:
parent
ac7f36494b
commit
de3c04adaf
@ -626,13 +626,7 @@ static void NOINLINE send_rangefinder(mavlink_channel_t chan)
|
|||||||
|
|
||||||
static void NOINLINE send_current_waypoint(mavlink_channel_t chan)
|
static void NOINLINE send_current_waypoint(mavlink_channel_t chan)
|
||||||
{
|
{
|
||||||
uint16_t current_cmd_index;
|
mavlink_msg_mission_current_send(chan, mission.get_current_nav_cmd().index);
|
||||||
if (mission.state() == AP_Mission::MISSION_RUNNING) {
|
|
||||||
current_cmd_index = mission.get_current_nav_cmd().index;
|
|
||||||
}else{
|
|
||||||
current_cmd_index = AP_MISSION_CMD_INDEX_NONE;
|
|
||||||
}
|
|
||||||
mavlink_msg_mission_current_send(chan, current_cmd_index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void NOINLINE send_statustext(mavlink_channel_t chan)
|
static void NOINLINE send_statustext(mavlink_channel_t chan)
|
||||||
|
Loading…
Reference in New Issue
Block a user