mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
GCS_MAVLink: correct placement of AP_MAVLINK_MISSION_SET_CURRENT_ENABLED
This commit is contained in:
parent
2c3ac2fa4e
commit
1dd5778956
@ -637,7 +637,6 @@ MISSION_STATE GCS_MAVLINK::mission_state(const AP_Mission &mission) const
|
|||||||
return MISSION_STATE_UNKNOWN;
|
return MISSION_STATE_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if AP_MAVLINK_MISSION_SET_CURRENT_ENABLED
|
|
||||||
void GCS_MAVLINK::send_mission_current(const class AP_Mission &mission, uint16_t seq)
|
void GCS_MAVLINK::send_mission_current(const class AP_Mission &mission, uint16_t seq)
|
||||||
{
|
{
|
||||||
auto num_commands = mission.num_commands();
|
auto num_commands = mission.num_commands();
|
||||||
@ -656,6 +655,7 @@ void GCS_MAVLINK::send_mission_current(const class AP_Mission &mission, uint16_t
|
|||||||
mission_mode); // mission_mode
|
mission_mode); // mission_mode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if AP_MAVLINK_MISSION_SET_CURRENT_ENABLED
|
||||||
/*
|
/*
|
||||||
handle a MISSION_SET_CURRENT mavlink packet
|
handle a MISSION_SET_CURRENT mavlink packet
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user