ArduPilot / mavlink

MAVLink micro air vehicle marshalling / communication library
http://qgroundcontrol.org/mavlink/start
Other
63 stars 286 forks source link

common.xml: add CAPA indicating mission-slot-0 is home #360

Open peterbarker opened 6 months ago

peterbarker commented 6 months ago

ArduPilot stores home position in the first element of the mission.

Other autopilots do not.

Add a capability bit indicating that ArduPilot is doing this, which ArduPilot will set. Eventually this will allow ArduPilot to not store home in slot-0 - or at least not as far as the item transfer protocols are concerned (including FTP).

No new autopilot should set the bit.

The concept is:

Drawback: the mavlink node initiating transfer MUST know the MAV_PROTOCOL_CAPABILITY mask of the autopilot before it can start a mission transfer

peterbarker commented 6 months ago
UTC1103 - https://github.com/ArduPilot/mavlink/pull/360
Could do a special NAV_HOME mission item type too
Parsing tlogs - don’t have capability bits so you don’t know what home is
GCSs which can’t read capabilities can’t work (e.g. read-only GCSs)
Still don’t know whether to add home at slot 0
Probably need the capability flags
Introduce NAV_HOME at the same time
Can NAV_HOME be anywhere than slot-0?
Nav_home an be displayed specially on the map
Will come back to it next week