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.
Demo
fence-items.txt
Example Inclusion Triangle
Here's some sample MAVlink data for an inclusion triangle.
https://sandcastle.cesium.com/#c=bZHfT8IwEMf/lcueRjI7cEx+DaIB30w0aHxxPpTtgMauJdcOMgz/u2WDaJC2ae/az/fucs20Mha2AndIMAaFO5iiEWXB3us7P/Wy2p9qZblQSKnXGqUqVVmtJMxftKxWWjl1E4ahssIKNIznuf+dKgDFCxxC6s0xh80Jd8uUtOQZpl5whE4PQ6glAGuBxClbV8NzSVNO1llcRWxJupjhihDNAxGv/I9GBHA+O90B69x1enE7CuAmilnknG7cCy6IdnR7BuJBN+5eAnFv0O7Hg3r0r0b6bAWNUXCLJLj8LVhLTWz+OKuBg9sPTfOaeerXXuviTfsX3WuNwAu8xNhK4uRc0b0oNposlCR9xkKLxUa6pCZclNkXWpYZc0xwRJPwrzTJxRZEPr7ynZBJbox7WZZSvoq9+49JEjr+n1Rqngu1et4iSV4dsXVn8tRcMsaS0LnXlVZrueB0EfkH
Details
Add parsers for inclusion and exclusion fences. These aren't super robust to dropped data yet, but they work in the happy path.
Fence clear still works.
A parser builds up an array of MISSION_ITEM objects that are for the fence, then once the expected count is reached, it calls the respective draw function.
Lots of code duplication which I can refactor later.