> When uploading waypoints from qgroundcontrol (version 0.9.0) to APM
> 2.22 (looking at the SVN it should be the same with the trunk version)
> it seems that regular mission waypointpoint updates have in their
> options the relative altitude flag _not_ set. Is this a bug or a
> feature?
so is QGC sending waypoints with frame set to MAV_FRAME_MISSION?
Lorenz, can you point me at any documentation on how altitude in
MAV_FRAME_MISSION is supposed to be interpreted?
> This has caused me some confusion since I think in the usual
> discussion about APM and mission planning the waypoint altitude is
> always relative (please correct me if I am wrong).
APM supports incoming waypoints in either relative altitude or global
altitude format. For relative altitude with global lat/lon values
MAV_FRAME_GLOBAL_RELATIVE_ALT is the frame I would expect.
Cheers, Tridge
Essentially the mission frame could be left out if the MAV would check the individual action and handle the parameters individually. For some commands the frame would differentiate wether it is a global or local coordinate, for those which are currently spec'ed as mission frame the autopilot could just ignore the frame field since it has no meaning.
-L
Thanks for the clarification regarding MAV_FRAME_MISSION.
On 9/3/11 1:25 PM, tridge@... wrote:
> so is QGC sending waypoints with frame set to MAV_FRAME_MISSION?
I added more debugging output and it seems that the frame field is
zero, which according to mavlink_types.h means MAV_FRAME_GLOBAL.
> > This has caused me some confusion since I think in the usual
> > discussion about APM and mission planning the waypoint altitude is
> > always relative (please correct me if I am wrong).
>
> APM supports incoming waypoints in either relative altitude or global
> altitude format. For relative altitude with global lat/lon values
> MAV_FRAME_GLOBAL_RELATIVE_ALT is the frame I would expect.
This would seem appropriate. Should one then change QGC to choose
MAV_FRAME_GLOBAL_RELATIVE_ALT instead of MAV_FRAME_GLOBAL
when transmitting mission waypoints?
Could someone confirm that this is due to the QGC code and not some
problem in the mavlink libraries I have on APM side? Value 0 could be
also just uninitialized, no?
Thanks for the work on QGC, mavlink and integration to APM! (wanted
to have said that earlier already :)
Cheers,
Andre
Are you sure you entered the right values and selected the right options? Please find attached a screenshot showing two valid relative altitude waypoints in the SF bay area.
Please hover with the mouse over each field to learn what it means.
If the issues persist I'd be happy to track down the bug - right now everything seems however to work as expected.
-L
Hi, Thanks for the clarification regarding MAV_FRAME_MISSION. On 9/3/11 1:25 PM, tridge@... wrote:
This makes your feedback vary valuable, so thank you!