Preserve relative-alt guided behavior by setting Locationwp.frame at implicit callers#3728
Locationwp.frame at implicit callers#3728Conversation
Locationwp.frame at implicit callers
84a9678 to
9edb50b
Compare
|
Automated review note — AI-generated (Claude), validated against the live diff. Please sanity-check before acting. Reviewed at head Two things to fix or consider before merge:
Non-blocking notes: external plugins/scripts calling this public API with a zero-initialised Census checked: of the 15 |
A recent guided-mode path change surfaced a behavior shift: callers constructing
Locationwpwithoutframenow send defaultGLOBAL(AMSL) instead of the previously normalized relative-alt behavior. For Copter paths passing relative altitude, this can produce unintended altitude commands.Scope: explicit frame assignment at affected guided callers
frame = (byte)MAVLink.MAV_FRAME.GLOBAL_RELATIVE_ALTwhereLocationwpwas built withlat/lng/altonly beforesetGuidedModeWP(...).Controls/FollowMe.csUtilities/httpserver.cs(/guideGET + POST handlers)Swarm/FollowPath.csExtLibs/ExtGuided/ExtGuidedPlugin.csPlugins/example14-mass.csExtLibs/Xamarin/Xamarin/Linked/httpserver.cs(mirrored HTTP guided handlers)Behavioral intent