Closed shanelenagh closed 1 year ago
There is an advisory circular that speaks to latency in the ADSB-in system. AC 20-172B. The built-in latency is not insignificant.
On Wed, Oct 12, 2022 at 11:50 AM shanelenagh @.***> wrote:
This PR contains the previous PR for adding the traffic ground and speed filters, but if possible I wanted to include this change as well--accounting for the time that it takes to speak/play the first part of a TCPA audible alert (e.g., "traffic alpha, closing in...") in the calculations of how many seconds are remaining until closest point of approach (CPA). This calculation is done as close as possible to the beginning of the playing of the message, to provide the most accurate estimate possible for the CPA. In prior testing I found that the alert seemed off by a part of a second up to a bit over a second, and this time was reduced by accounting for the time needed to speak this "prefix" to the actual seconds value.
You can view, comment on, or merge this pull request online at:
https://github.com/apps4av/avare/pull/482 Commit Summary
- a39ecb2 https://github.com/apps4av/avare/pull/482/commits/a39ecb23924a2ba0733ec6d978e81158788b1829 Avare-371 (https://github.com/apps4av/avare/issues/371): Have ADSB message parsing pull "is airborne" bit from GDL90 message, and use it to drive a configurable display setting to show/hide ground traffic
- fddd3d8 https://github.com/apps4av/avare/pull/482/commits/fddd3d825379237d153c1dc604c5770c499e0a29 Added preference (defaulted to false) to selectively enable ground traffic in audible alerts, using newly exposed boolean of airborne status in traffic object; some post-upstream cleanup/factoring of audible alerts class as well
- 512a832 https://github.com/apps4av/avare/pull/482/commits/512a832a67fa9ad2213aa303dad1bbb10cc06b31 Added mininum speed audible alerts preference (and fixed one bug with knots conversion since new constant introduced)
- 2b4336c https://github.com/apps4av/avare/pull/482/commits/2b4336c68bba7e38315d44a1a777090726b5f54f Increase accuracy of closing (TCPA) alert by subtracting time to speak the alert clips prior to the "# seconds" section to give a more accurate time to CPA
- fa95f92 https://github.com/apps4av/avare/pull/482/commits/fa95f9251530b7edb104a9aff9407c9d10b5a064 Minor cleanup and refactoring
File Changes
(11 files https://github.com/apps4av/avare/pull/482/files)
- M app/src/main/java/com/ds/avare/StorageService.java https://github.com/apps4av/avare/pull/482/files#diff-431bc2c10073e9f5b6688b998f2cb777e7937620bc5f6046e2aa56f8abf12791 (3)
- M app/src/main/java/com/ds/avare/adsb/AudibleTrafficAlerts.java https://github.com/apps4av/avare/pull/482/files#diff-07a8a7a20b7f92cdda5ac458a087510aa1e00bef1355bb516973cb52f56ab0e9 (296)
- M app/src/main/java/com/ds/avare/adsb/Traffic.java https://github.com/apps4av/avare/pull/482/files#diff-107fba48ff2b323b511a3506efaa8931af89dd32cc03aed9354e838143fc0ed1 (8)
- M app/src/main/java/com/ds/avare/adsb/TrafficCache.java https://github.com/apps4av/avare/pull/482/files#diff-37989565d2509f935b3a907b5e8546a5244e816a2901b2d07f57d7d26b74e2a6 (26)
- M app/src/main/java/com/ds/avare/adsb/gdl90/OwnshipMessage.java https://github.com/apps4av/avare/pull/482/files#diff-9f1e261648a148f56cc8761c17a417b43f1e217357b029674d6b4ba2627576d8 (2)
- M app/src/main/java/com/ds/avare/adsb/gdl90/TrafficReportMessage.java https://github.com/apps4av/avare/pull/482/files#diff-a60bcd8c278392aca642a1cbb7c21f3c0eeab06a150b230b31b0da61852695ce (6)
- M app/src/main/java/com/ds/avare/connections/BufferProcessor.java https://github.com/apps4av/avare/pull/482/files#diff-71b26af568630baf61a5e47d728e27f73a6a343564f581e5cd12d7ec89ab7b52 (2)
- M app/src/main/java/com/ds/avare/storage/Preferences.java https://github.com/apps4av/avare/pull/482/files#diff-58466cb2f6eadc737bc0754fd5364de37fccae9724a342ef16c84020fc6c6837 (15)
- M app/src/main/res/values/strings.xml https://github.com/apps4av/avare/pull/482/files#diff-5e01f7d37a66e4ca03deefc205d8e7008661cdd0284a05aaba1858e6b7bf9103 (9)
- M app/src/main/res/xml/preferences.xml https://github.com/apps4av/avare/pull/482/files#diff-7e7c0905b5ff960c90f5e3d0bc27c7091d5516e74b541126560d5ffcd4afcc2f (17)
- M app/src/test/java/com/ds/avare/adsb/AudibleTrafficAlertsTest.java https://github.com/apps4av/avare/pull/482/files#diff-d73dd614d6f3916535e80c57d7c324f89346964255ca20203c5f34667a16cb90 (73)
Patch Links:
— Reply to this email directly, view it on GitHub https://github.com/apps4av/avare/pull/482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAT66CK4NK7FUF27XBABTLWC3M4BANCNFSM6AAAAAARDNTIRU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I found a bug with one of the recent changes in both of these latest PR's, so I am closing both until I can fully test my fixes.
This PR contains the previous PR for adding the traffic ground and speed filters, but if possible I wanted to include this change as well--accounting for the time that it takes to speak/play the first part of a TCPA audible alert (e.g., "traffic alpha, closing in...") in the calculations of how many seconds are remaining until closest point of approach (CPA). This calculation is done as close as possible to the playing of the message, to provide the most accurate estimate possible for the CPA. In prior testing I found that the alert seemed off by a part of a second up to a bit over a second, and this time was reduced by accounting for the time needed to speak this "prefix" to the actual seconds value.