mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: add and use AP_MAVLINK_COMMAND_LONG_ENABLED
This commit is contained in:
parent
9ff9f8d216
commit
24f00ddaf7
|
@ -4776,6 +4776,7 @@ bool GCS_MAVLINK::location_from_command_t(const mavlink_command_int_t &in, Locat
|
|||
return true;
|
||||
}
|
||||
|
||||
#if AP_MAVLINK_COMMAND_LONG_ENABLED
|
||||
bool GCS_MAVLINK::command_long_stores_location(const MAV_CMD command)
|
||||
{
|
||||
switch(command) {
|
||||
|
@ -4858,6 +4859,7 @@ void GCS_MAVLINK::handle_command_long(const mavlink_message_t &msg)
|
|||
|
||||
hal.util->persistent_data.last_mavlink_cmd = 0;
|
||||
}
|
||||
#endif // AP_MAVLINK_COMMAND_LONG_ENABLED
|
||||
|
||||
MAV_RESULT GCS_MAVLINK::handle_command_do_set_roi(const Location &roi_loc)
|
||||
{
|
||||
|
|
|
@ -86,3 +86,10 @@
|
|||
#ifndef AP_MAVLINK_MSG_MISSION_REQUEST_ENABLED
|
||||
#define AP_MAVLINK_MSG_MISSION_REQUEST_ENABLED 1
|
||||
#endif
|
||||
|
||||
// all commands can be executed by COMMAND_INT, so COMMAND_LONG isn't
|
||||
// strictly required. This option created for 4.5, Nov 2023, and code
|
||||
// left in place.
|
||||
#ifndef AP_MAVLINK_COMMAND_LONG_ENABLED
|
||||
#define AP_MAVLINK_COMMAND_LONG_ENABLED 1
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue