ADSB selected the most dangerous vehicle by CPA calculation#11346
Draft
error414 wants to merge 4 commits intoiNavFlight:maintenance-9.xfrom
Draft
ADSB selected the most dangerous vehicle by CPA calculation#11346error414 wants to merge 4 commits intoiNavFlight:maintenance-9.xfrom
error414 wants to merge 4 commits intoiNavFlight:maintenance-9.xfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Base of this PR is add posibility to choose CPA calculation. If vehicle flies from warning zone to alert then vehicle is showed in OSD as alert (blinking).
Manual is changed https://github.com/error414/inav/blob/error414/feature/adsb-intercept-calc/docs/ADSB.md and Martinov created nice video with explanation https://discord.com/channels/791437907478577172/881440734761345086/1473447570234806486
Next changes:
ADSB calculation was removed from OSD thread and moved to ADSB thread (500ms). OSD thread takes soo much time so better to move ADSB calculation to his own thread. ADSB thread takes a few uS.
added two new MSP2 commands, ADSB_LIMITS and ADSB_WARNING_ICAO. "Limits" returs ADSB limits from OSD settings, and "adsb_warning_icao" returns icao of plane which is selected as dangerous. MSP commands are new functionality in configurator
in configurator, selected vehicle as dangerous is marked red or orange depend of if iot's warning or alert
map is spread to whole VISIBLE area
visually represented ADSB limits on map, see screenshot
Configurator: iNavFlight/inav-configurator#2569
BTW: MSP is breaking change so maybe better to merge it to INAV 10.