Add UTM_GLOBAL_POSITION MAVLink stream #10873
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test data / coverage
Tested SITL and on Pixhawk 4.
Describe problem solved by the proposed pull request
Due to recent developments with regards to UTM services and different regional UTM efforts, a generalized interface should be defined to communicate the vehicles information and state to an external UTM service. The MAVLink stream contains a field for a unique identifier and provides information on the vehicle's status and current mission goal. Depending on the capabilities of the vehicle or the current flight state, selected fields can be invalidated using a data available flag.
Describe your preferred solution
Include UTM_GLOBAL_POSITION as a new MAVLink stream. Moreover, in order to fill the altitude with WGS84 data, a filter for ellipsoid altitude was added to EKF2.
Describe possible alternatives
Additional context
Based on: mavlink/mavlink#1009 and mavlink/rfcs#10.