ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
11.01k stars 17.56k forks source link

Copter: Guided Mode MAV_CMDs should all be sendable from COMMAND_LONG #2446

Closed hamishwillee closed 7 years ago

hamishwillee commented 9 years ago

Almost all MAV_CMDs are processed in guided mode when sent inside a COMMAND_LONG (see MAVLINK_MSG_ID_COMMAND_LONG in GCS_Mavlink.cpp.

There are a couple of exceptions, which makes the API a little inconsistent. Recommendation is that all MAV_CMDs be processed inside COMMAND_LONG. These are the "missing ones" I know about

@rmackay9 That is all the MAV_CMDs in the handler.

OXINARF commented 7 years ago

The mentioned "missing ones" aren't MAV_CMDs but independent messages and for that reason they can't be handled inside the COMMAND_LONG processing. That shouldn't stop them from being handled in Guided mode though, and looking at code they seem to be.

In any case those messages are deprecated and replaced with similar MAV_CMDs which are handled in the COMMAND_LONG section.