Feature request - Traffic audio alerts

Generate configurable audio alerts based on traffic -distance, altitude, etc

This has been requested before. At this time, it has been seen as a feature of the EFB that you are using. We are only looking to provide as much quality data/info to the connected devices allowing them to make those decisions!!!

understandable but having stratux generate the audio allows an audio cable between stratux and intercom as a more permanent install rather than plugging in and removing both power and audio  when using a tablet  EFB.  And allows for audio support when the EFB doesn’t support it (eg FlightPlan GO on Android)  and perhaps best of all –
allows for a custom criteria to generate better audio – eg traffic two oclock low.
Anyway the traffic.go code sets an alert flag based on distance and has comment –
// TODO: Could be more intelligent, taking into account headings
Could you point me to how to contribute (in this case isTrafficAlertable)?
thanks
From: peepsnet<EMAIL_ADDRESS>Sent: October-12-17 9:42 AM
To: cyoung/stratux
Cc: cbfraser; Author
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
This has been requested before. At this time, it has been seen as a feature of the EFB that you are using. We are only looking to provide as much quality data/info to the connected devices allowing them to make those decisions!!!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-336195051 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcOtBX3QcDuwT66GHI8W39gOwoKdnks5srkFsgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcIa7MaXh4M0Fb28kpwvT11prhCYdks5srkFsgaJpZM4P3NGU.gif

https://github.com/cyoung/stratux/issues/411
https://github.com/cyoung/stratux/issues/364

@cbfraser - if you're interested in doing this, then we may add it. What are your abilities?
apt-get install espeak, the 'espeak' tool seems to work fairly easily:
root@raspberrypi:~# espeak --stdout "Traffic, ten o’clock, one two miles, southeast bound, one thousand feet below you" | aplay
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
root@raspberrypi:~#

(from JO 7110.65W)
We won't (and don't need to) add anything to traffic.go for this, it should be an external program.
traffic.zip

By the way, we could do the similar with radar, METARs, PIREPs, etc.
https://github.com/cyoung/stratux/blob/master/test/nexrad_annunciator.go

good to hear –
I’ve got a computer science background – and while it has been awhile since I coded professionally,
the coding is straight forward – I’ve done some Arduino stuff but no rp3 so would likely need pointers
on integration with traffic.go.
I’ve done a couple of startups so pretty good a product definition, requirements, testing, usability.
You mention not changing traffic.go but the isTrafficAlertable  code sets the alert flag and even the comment suggests
improvement (and some users rebuild image to clear that code so the efb app can do it according to its criteria).
Wouldn’t it makes sense to use same logic for setting alert flag and generating audio alert?
I’ve got espeak running – Let me put together a proof of concept system
and see what issues there are – such as having more traffic to report than audio bandwidth,
likely configuration options,
and I’ll get back with some ideas.
Do you care whether audioalert is go or python?
func isTrafficAlertable(ti TrafficInfo) bool {
// Set alert bit if possible and traffic is within some threshold
// TODO: Could be more intelligent, taking into account headings etc.
From: cyoung<EMAIL_ADDRESS>Sent: October-17-17 12:11 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
@cbfraser https://github.com/cbfraser  - if you're interested in doing this, then we may add it. What are your abilities?
apt-get install espeak, the 'espeak' tool seems to work fairly easily:
root@raspberrypi:~# espeak --stdout "Traffic, ten o’clock, one two miles, southeast bound, one thousand feet below you" | aplay
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
root@raspberrypi:~#
(from JO 7110.65W https://www.faa.gov/documentLibrary/media/Order/ATC.pdf )
We won't (and don't need to) add anything to traffic.go for this, it should be an external program.
traffic.zip https://github.com/cyoung/stratux/files/1392289/traffic.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-337338226 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcGQ0eBK5acGpQsVDWG_iakyGRmunks5stPvZgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcFO3xvy2jCt8NmxDsTVaGoJsCYgdks5stPvZgaJpZM4P3NGU.gif

@cbfraser - it doesn't matter if it's in Go or Python. We have Python installed on the release images.
It would make sense to use the same criteria but I think you mentioned making it customizable. That makes sense for audio alerts perhaps, but not really customizing traffic alerts in stratux. If it's in the main stratux code I'd prefer that it be based on some sort of standard and not customizable at all.

makes sense –traffic would have a base   criteria for the alert flag - eg 2nm as it is now but also altitude (ie within 1,000ft) –
and put in audioalert configurable criteria and other criteria like closure, collision detection etc
I’ll come back with a suggested proposal as a starting point…..
thanks
From: cyoung<EMAIL_ADDRESS>Sent: October-18-17 8:10 AM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
@cbfraser https://github.com/cbfraser  - it doesn't matter if it's in Go or Python. We have Python installed on the release images.
It would make sense to use the same criteria but I think you mentioned making it customizable. That makes sense for audio alerts perhaps, but not really customizing traffic alerts in stratux. If it's in the main stratux code I'd prefer that it be based on some sort of standard and not customizable at all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-337623933 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcNQWMrLb11YESt0A-lzD7XTVMGdVks5sthTKgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcMHMDXgYDWvEHF-OIQkJhh87Hi5Qks5sthTKgaJpZM4P3NGU.gif

I’ve done some preliminary work – the code
for “traffic 12 oclock high 2 miles” is straight forward based on info   available in traffic.
I’ve also done a draft collision prediction section – (2d)
“traffic 12 oclock high 2 miles incoming 3 minutes”   that brings up a few questions:

     is ownship and target   track and velocity available  - I see the fields – are they usually available and valid?

     I’m using mpmath and sympy – would it be a problem including those libraries if you wanted to use this?

thanks
From: cyoung<EMAIL_ADDRESS>Sent: October-18-17 8:10 AM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
@cbfraser https://github.com/cbfraser  - it doesn't matter if it's in Go or Python. We have Python installed on the release images.
It would make sense to use the same criteria but I think you mentioned making it customizable. That makes sense for audio alerts perhaps, but not really customizing traffic alerts in stratux. If it's in the main stratux code I'd prefer that it be based on some sort of standard and not customizable at all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-337623933 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcNQWMrLb11YESt0A-lzD7XTVMGdVks5sthTKgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcMHMDXgYDWvEHF-OIQkJhh87Hi5Qks5sthTKgaJpZM4P3NGU.gif

Excellent. We can include those libraries, yes. See ws://localhost/traffic and http://localhost/getSituation documented here. Sometimes that information is available, sometimes not.

I have initial code for traffic alerts and collision detection –
do I use this email to send you discussion material?
regards
From: cyoung<EMAIL_ADDRESS>Sent: October-19-17 5:41 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Excellent. We can include those libraries, yes. See ws://localhost/traffic and http://localhost/getSituation documented here https://github.com/cyoung/stratux/blob/master/notes/app-vendor-integration.md . Sometimes that information is available, sometimes not.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-338075312 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcJJYqjUDpJkqvfbfQPP3DX9PQrb8ks5st-wLgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcGrBbiCsrQodSupGBpiZ9slGmXpBks5st-wLgaJpZM4P3NGU.gif

I’ve done the straight forward traffic alert program.
I opted for a typical terse ATC traffic report –
“Traffic 12 oh clock high 5 miles”. It could be more verbose but I’m concerned that in
busy traffic audio bandwidth may be limited.
I’ve spent most of my time on collision detection which was far more complicated
and more interesting  -  will send that next.
I’ll need some direction on integration please– accessing the traffic.go data,
adding (better you add though) & reading  configuration parameters & logging.
Out for a few weeks so can discuss but will do further work on return.
regards
From: cyoung<EMAIL_ADDRESS>Sent: October-19-17 5:41 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Excellent. We can include those libraries, yes. See ws://localhost/traffic and  http://localhost/getSituation http://localhost/getSituation documented here https://github.com/cyoung/stratux/blob/master/notes/app-vendor-integration.md . Sometimes that information is available, sometimes not.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-338075312 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcJJYqjUDpJkqvfbfQPP3DX9PQrb8ks5st-wLgaJpZM4P3NGU .https://github.com/notifications/beacon/AEQrcGrBbiCsrQodSupGBpiZ9slGmXpBks5st-wLgaJpZM4P3NGU.gif
import subprocess
def audio_out(audio_str):
"""Generate audio out with eSpeak
"""
# need to pass eSpeak options
# bluetooth option
p = subprocess.Popen(["C:\eSpeak.exe",audio_str])
return
#!/usr/bin/env python
from traffic_alert import traffic_alert
from audio_out import audio_out
while 1==1:
b = int(input("bearing: (90)") or 90)
v = int(input("vertical: (2000)") or 2000)
m = int(input("miles: (5)") or 5)
print(traffic_alert(b,v,m))
audio_out(traffic_alert(b,v,m))

#!/usr/bin/env python
import math
from math import atan, degrees
#convert ft to nm
FT2NM = 0.0001645784
#possible configuration values
high_angle = 15 # degrees
low_angle = -15 # degrees
def traffic_alert(bearing, vertical, distance):
"""Generate audio alert string
"""
#  bearing is relative to heading (-180 :: +180)
# vertical: feet +- relative to ship
# distance in nm
if bearing > 0:
    oclock = int((bearing + 15) / 30)
else:
    oclock = 12 + int((bearing - 15) / 30)
if oclock == 0:
    oclock = 12

#calcuate visual angle
angle = math.degrees(math.atan(vertical*FT2NM/distance))
visual_angle = ""
if angle < low_angle:
    visual_angle = "low "
elif angle > high_angle:
    visual_angle = "high "

return ("traffic " + str(oclock) + " oh clock " + visual_angle + str(int(distance))
        + " mile"+[" ","s, "][int(distance)>1])

@cbfraser - I see some Python code, appears to be three scripts added to the body of the message. Yes, please use this thread to track progress. Could you maybe add the files to a ZIP and post on GitHub. I'll go from what you have to add the piece that pulls traffic information from Stratux and you can expand on it from there.

@cbfraser - committed these scripts to:
https://github.com/stratux/traffic_alert
See also the script that I added called "get_traffic.py". It will print traffic and situation updates to the screen. Perhaps you could fork from this and add changes on your GitHub account.

Here is the more complex collision code - the test driver has option to output aircraft tracks to plotly (helpful when trying to visualize different scenarios) and optionally will read file with test data.
Requires math and sympy and also plotly & plotly account if plotting output.
collision_test.py - test driver
collide.py  - collision code
Capture.jpg - sample plot
test data template.tst - input values for test data
headon.tst - 9 head on scenarios
intersection.tst - 5 intersecting scenarios
Please post if a test scenario reveals an error (ideally with *.tst file).
collision.zip
At a high level - traffic would be filtered on distance and vertical seperation,
then traffic_alert would generate string for traffic and collision add collision warning if detected.

ready to start integration testing - I've done python code in a windows environment, can I use the target rpi3 for development or do I need a 2nd one or a cross compile environment?

The Raspberry Pi image includes Python (I believe 2.7).  I'm developing on the Pi by SSH'ing in from a Windows 10 machine to run the code, and using WinSCP and Code to edit the scripts on the Windows 10 machine rather than use an editor on the Pi.  I'm fairly new to Python and this setup works well for me.

integration on target rpi3 update:
using 2nd board with ethernet for intial setup
stratux install
audio & espeak
sympy
websocket
test programs
traffic & collision alerts
now need to turn on traffic demo & rebuild stratux for bench testing

Configuration Parameters:
Need to define user/system parameters:
Filter for audio alerts based on:
traffic_distance
traffic_separation (vertical)
collision_window
audio pacing for same target
angle for target high/low

first audio reports generated from live traffic -
error in data feed - I'll post separately

Did you have record logs enabled? Could you share the logs?

yes I can help you with that - what files do you want?
2017/12/04 17:27:28 C04414 => {"Icao_addr":12600340,"Reg":"C-FZUH","Tail":"e C-FZUH","Emitter_category":0,"OnGround":false,"Addr_type":0,"TargetType":0,"SignalLevel":-28.77129077135564,"Squawk":0,"Position_valid":false,"Lat":0,"Lng":0,"Alt":10475,"GnssDiffFromBaroAlt":0,"AltIsGNSS":false,"NIC":0,"NACp":0,"Track":0,"Speed":0,"Speed_valid":false,"Vvel":0,"Timestamp":"2017-12-04T17:27:26.76Z","PriorityStatus":0,"Age":1.74,"AgeLastAlt":1.42,"Last_seen":"0001-01-01T00:02:14.14Z","Last_alt":"0001-01-01T00:02:14.46Z","Last_GnssDiff":"0001-01-01T00:00:00Z","Last_GnssDiffAlt":0,"Last_speed":"0001-01-01T00:00:00Z","Last_source":1,"ExtrapolatedPosition":false,"BearingDist_valid":true,"Bearing":63.815863409600276,"Distance":1.2317282764558565e+07}

/var/log/stratux.sqlite . Enable all logging in the webui first.

stratux.zip
here it is
renamed from .sqlite to .txt to access from windows

also seeing these same static values on type 1 targets (adsb)
{
"Icao_addr": 12615599,
"Reg": "C-GWJE",
"Tail": "eaC-GWJE",
"Emitter_category": 0,
"OnGround": false,
"Addr_type": 0,
"TargetType": 1,
"SignalLevel": -27.09742730605482,
"Squawk": 0,
"Position_valid": false,
"Lat": 0,
"Lng": 0,
"Alt": 20925,
"GnssDiffFromBaroAlt": 325,
"AltIsGNSS": false,
"NIC": 8,
"NACp": 8,
"Track": 82,
"Speed": 384,
"Speed_valid": true,
"Vvel": 3328,
"Timestamp": "2017-12-04T23:23:09.808Z",
"PriorityStatus": 0,
"Age": 26.03,
"AgeLastAlt": 20.63,
"Last_seen": "0001-01-01T00:58:52.36Z",
"Last_alt": "0001-01-01T00:58:57.76Z",
"Last_GnssDiff": "0001-01-01T00:58:52.91Z",
"Last_GnssDiffAlt": 20650,
"Last_speed": "0001-01-01T00:58:52.91Z",
"Last_source": 1,
"ExtrapolatedPosition": false,
"BearingDist_valid": true,
"Bearing": 63.815778004276424,
"Distance": 1.231728205534869e+07
earingDist_valid": true,
"Bearing": 63.815778004276424,
"Distance": 1.231728205534869e+07
}

Reg and Tail values seem to always be the same
{"Icao_addr":12594428,"Reg":"C-FRAX","Tail":"e C-FRAX","E.....
I believe reg or tail is usually set to flight number on commercial flights,
so could be an issue
while planefinder.net is showing flight number WS713 - C-FRAX

good to hear
I think the other benefit is not having to be locked on watching the EFIS and also not having to estimate what traffic is a threat.
Do you know how to rsh to Stratux and copy files to the Stratux?
Do you pick up ADSB traffic at your house?
Does your aircraft have ADSB out?
Do you have a friend willing to help with flight testing with an aircraft with ADSB out?
From: peterclubroad<EMAIL_ADDRESS>Sent: December-16-17 8:59 AM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Audio alerts would be really great because it would help to overcome integration probs with nav-software that does not (yet) compute the stratux output. Consider it an excellent feature.
Since I am no good at programming I'd like to assist any testing on ground and in flight.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-352195559 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcEkh0QJrRYEzLanT1lwN4oPgIsRaks5tA_bGgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcGYR7-0GEc10Ki3M49-H-nfkChgJks5tA_bGgaJpZM4P3NGU.gif

Two planes (one being equiped with a mode S transponder already. I am about to put in a gps module to activate extended squitter.) incl friends are available. PCB for that finished yesterday. Next airfield is less than 10 miles :-)
And yes, I have fiddeled about with ADSB trafic reception for a while. I am am not continuously feeding it to the web though. Copying files to stratux/pi3 has worked, too.
Let me know if you think it's worth a try.

good – I’ll prepare some setup instructions and test files
and post later
get started with:
sudo apt-get install espeak
sudo pip install sympy
sudo pip install websocket-client
in case Chris has the inclination a build with these packages would be very helpful
From: peterclubroad<EMAIL_ADDRESS>Sent: December-17-17 1:26 AM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Two planes (one being equiped with a mode S transponder already. I am about to put in a gps module to activate extended squitter.) incl friends are available. PCB for that finished yesterday. Next airfield is less than 10 miles :-)
And yes, I have fiddeled about with ADSB trafic reception for a while. I am am not continuously feeding it to the web though. Copying files to stratux/pi3 has worked, too.
Let me know if you think it's worth a try.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-352242575 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcDjWCgPkxeBl5QfuORMM2DlkjcTZks5tBN4pgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcBw0yznfR0yKRqJA5uKfMhgr5ktgks5tBN4pgaJpZM4P3NGU.gif

What’s the progress on this one? I also consider this a killer feature for a permanent install which is independent from the software used.
I can only offer my help testing with three planes, two ads-b out equipped.
Patrick

audio alerts is ready for some initial field testing - need 2 aircraft - one with adsb out,  one with the stratux and observer to run tests.....

Several promises but no one came through...
Cameron Fraser604 500 4682
-------- Original message --------From: cobraPA<EMAIL_ADDRESS>Date: 2018-09-05  04:22  (GMT-08:00) To: cyoung/stratux<EMAIL_ADDRESS>Cc: cbfraser<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Hi cbfraser, how is this doing?  Did you ever get any responses on test flights?  There was a discussion on the slack discussion channel about having voice traffic notifications yesterday and a couple off us where curious.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/cyoung/stratux","title":"cyoung/stratux","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/cyoung/stratux"}},"updates":{"snippets":[{"icon":"PERSON","message":"@cobraPA in #670: Hi cbfraser, how is this doing?  Did you ever get any responses on test flights?  There was a discussion on the slack discussion channel about having voice traffic notifications yesterday and a couple off us where curious."}],"action":{"name":"View Issue","url":"https://github.com/cyoung/stratux/issues/670#issuecomment-418695321"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/cyoung/stratux/issues/670#issuecomment-418695321",
"url": "https://github.com/cyoung/stratux/issues/670#issuecomment-418695321",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)",
"sections": [
{
"text": "",
"activityTitle": "cobraPA",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@cobraPA",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueComment",\n"repositoryFullName": "cyoung/stratux",\n"issueId": 670,\n"IssueComment": "{{IssueComment.value}}"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "cyoung/stratux",\n"issueId": 670\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/cyoung/stratux/issues/670#issuecomment-418695321"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "MuteNotification",\n"threadId": 266129812\n}"
}
],
"themeColor": "26292E"
}
]

I was the one asking on Slack about the progress, I’ve got a plane and a stratux, but not a ton of time, I could test when I can if you need.

For effective/repeatable testing 2 aircraft are needed – 2 pilots and one tester.
Several packages need to be included in the base build, I haven’t seen any interest
in including these.  I’ve got a one off build that I’ll have to dust off if we can get
test aircraft.
And Bluetooth needs to be configured.
Overview below
…
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and reads all the
traffic messages on the websocket interface then generates audio traffic and collision
alerts. It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's altitude, distance,
ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether traffic is getting
closer and optionally calculates potential collision.
Audio is paced at a system output rate and a rate for a target
and a periodic audio heartbeat is issued.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by a near miss time window but disregards relative
altitudes. It will predict ship & target crossing head on or from behind or at an
intersection.
Collision alerts are of the form "Head on in 1 minute", "Passing in 1 minute",
"Overtaking 1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses prerecorded
voice. This sounds better but is limited to 20 miles and 12 minutes. It does allow for
other languages.
A simple webpage displays current traffic and stats. <IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Cameron Fraser
+1<PHONE_NUMBER>
From: PatrickDCarter<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 1:40 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I was the one asking on Slack about the progress, I’ve got a plane and a stratux, but not a ton of time, I could test when I can if you need.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418873641 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcL5RI1QzuFqSpXW87dvh6gcFAWUfks5uYDaUgaJpZM4P3NGU .https://github.com/notifications/beacon/AEQrcJu7BBMkcMiA3685IdckY3xABV1Dks5uYDaUgaJpZM4P3NGU.gif

I’m sure I can get a few airplanes, that shouldn’t be a problem.

On Sep 5, 2018, at 5:59 PM, cbfraser<EMAIL_ADDRESS>wrote:
For effective/repeatable testing 2 aircraft are needed – 2 pilots and one tester.
Several packages need to be included in the base build, I haven’t seen any interest
in including these. I’ve got a one off build that I’ll have to dust off if we can get
test aircraft.
And Bluetooth needs to be configured.
Overview below
…
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and reads all the
traffic messages on the websocket interface then generates audio traffic and collision
alerts. It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's altitude, distance,
ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether traffic is getting
closer and optionally calculates potential collision.
Audio is paced at a system output rate and a rate for a target
and a periodic audio heartbeat is issued.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by a near miss time window but disregards relative
altitudes. It will predict ship & target crossing head on or from behind or at an
intersection.
Collision alerts are of the form "Head on in 1 minute", "Passing in 1 minute",
"Overtaking 1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses prerecorded
voice. This sounds better but is limited to 20 miles and 12 minutes. It does allow for
other languages.
A simple webpage displays current traffic and stats. <IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Cameron Fraser
+1<PHONE_NUMBER>
From: PatrickDCarter<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 1:40 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I was the one asking on Slack about the progress, I’ve got a plane and a stratux, but not a ton of time, I could test when I can if you need.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418873641 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcL5RI1QzuFqSpXW87dvh6gcFAWUfks5uYDaUgaJpZM4P3NGU .https://github.com/notifications/beacon/AEQrcJu7BBMkcMiA3685IdckY3xABV1Dks5uYDaUgaJpZM4P3NGU.gif
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

ok – I will send test plan for you to review.
To be really useful someone needs to document how to configure Bluetooth.
Cameron Fraser
+1<PHONE_NUMBER>
From: PatrickDCarter<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 4:19 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I’m sure I can get a few airplanes, that shouldn’t be a problem.

On Sep 5, 2018, at 5:59 PM, cbfraser<EMAIL_ADDRESS>wrote:
For effective/repeatable testing 2 aircraft are needed – 2 pilots and one tester.
Several packages need to be included in the base build, I haven’t seen any interest
in including these. I’ve got a one off build that I’ll have to dust off if we can get
test aircraft.
And Bluetooth needs to be configured.
Overview below
…
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and reads all the
traffic messages on the websocket interface then generates audio traffic and collision
alerts. It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's altitude, distance,
ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether traffic is getting
closer and optionally calculates potential collision.
Audio is paced at a system output rate and a rate for a target
and a periodic audio heartbeat is issued.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by a near miss time window but disregards relative
altitudes. It will predict ship & target crossing head on or from behind or at an
intersection.
Collision alerts are of the form "Head on in 1 minute", "Passing in 1 minute",
"Overtaking 1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses prerecorded
voice. This sounds better but is limited to 20 miles and 12 minutes. It does allow for
other languages.
A simple webpage displays current traffic and stats. <IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Cameron Fraser
+1<PHONE_NUMBER>
From: PatrickDCarter<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 1:40 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I was the one asking on Slack about the progress, I’ve got a plane and a stratux, but not a ton of time, I could test when I can if you need.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418873641 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcL5RI1QzuFqSpXW87dvh6gcFAWUfks5uYDaUgaJpZM4P3NGU .https://github.com/notifications/beacon/AEQrcJu7BBMkcMiA3685IdckY3xABV1Dks5uYDaUgaJpZM4P3NGU.gif
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418911902 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcLRrm-yYEomLk1of8SiguyKNdKynks5uYFvSgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcIsXZEk8cV45g1DgzVJBkuXOF_h1ks5uYFvSgaJpZM4P3NGU.gif

attached
Cameron Fraser
+1<PHONE_NUMBER>
From: PatrickDCarter<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 4:19 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I’m sure I can get a few airplanes, that shouldn’t be a problem.

On Sep 5, 2018, at 5:59 PM, cbfraser<EMAIL_ADDRESS>wrote:
For effective/repeatable testing 2 aircraft are needed – 2 pilots and one tester.
Several packages need to be included in the base build, I haven’t seen any interest
in including these. I’ve got a one off build that I’ll have to dust off if we can get
test aircraft.
And Bluetooth needs to be configured.
Overview below
…
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and reads all the
traffic messages on the websocket interface then generates audio traffic and collision
alerts. It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's altitude, distance,
ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether traffic is getting
closer and optionally calculates potential collision.
Audio is paced at a system output rate and a rate for a target
and a periodic audio heartbeat is issued.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by a near miss time window but disregards relative
altitudes. It will predict ship & target crossing head on or from behind or at an
intersection.
Collision alerts are of the form "Head on in 1 minute", "Passing in 1 minute",
"Overtaking 1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses prerecorded
voice. This sounds better but is limited to 20 miles and 12 minutes. It does allow for
other languages.
A simple webpage displays current traffic and stats. <IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Cameron Fraser
+1<PHONE_NUMBER>
From: PatrickDCarter<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 1:40 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I was the one asking on Slack about the progress, I’ve got a plane and a stratux, but not a ton of time, I could test when I can if you need.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418873641 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcL5RI1QzuFqSpXW87dvh6gcFAWUfks5uYDaUgaJpZM4P3NGU .https://github.com/notifications/beacon/AEQrcJu7BBMkcMiA3685IdckY3xABV1Dks5uYDaUgaJpZM4P3NGU.gif
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418911902 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcLRrm-yYEomLk1of8SiguyKNdKynks5uYFvSgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcIsXZEk8cV45g1DgzVJBkuXOF_h1ks5uYFvSgaJpZM4P3NGU.gif
Flight Tests V1.0:
Recommend aircraft A -flown 2 people, copilot monitoring Stratux
and giving commands to aircraft B and taking notes so pilots are always
able to maintain safe seperation - B always 1000ft below A except for tests #3-6.
need laptop to be able to ssh to Stratux to monitor traffic webpage and  edit parameter files
and restart. -
notepad for results & comments about each test
use "script" to start logging terminal session
and at the end "exit" to stop - email file typescript and also
notes
Parameters - edit audio_alerts.txt:
vertical 2000
distance 10
converging traffic False
collision 5
simulator False
voice directory - null or en-GB
put aircraft B in the circuit
#1:during taxi no reports
#2:on takeoff roll reports should start
scenario 1:
A -straight and level
B - starting at 3 oclock and at distance of about 1/2 mile  steady
(ie "wingman" position")
- #3:check traffic reports.
- turn on coverging traffic filter True
#4:check reports stop (B constant or increasing distance)
have aircraft B approach (slowly!)
#5:check reports start
turn off converging filter
- aircraft B climbs until report is "Traffic x oh clock HIGH"
#6: check angle - too soon too late?
- aircraft B descends until report is "LOW"
#7:check angle - too soon too late?
- aircraft B resumes 1000 ft below A , 1 mile, 3 oclock and 		circles A  horizontally until in 12 oclock about 1 or 2 nm ahead
check  collision alerts 3 cases:
-#8:overtaking inside window - B much slower
-#9:overtaking outside window - B slight slower
-#10:not overtaking - B faster
- B goes in front 20 miles and 1000ft below A and does 180,
ie headon - careful! - check distance on webpage, 20 miles
should give about 6 minutes if each aircraft is doing
about 100kts
#11:check traffic warnings"head on in x minutes" reducing
down to #12:"head on now!"
- B moves past 1000ft below to 6 oclock - does 180 about 1 nm
  behind.
		- #13: passing outside window - B slightly faster
		- #14: not passing - B slower
		- #15: passing inside window - B faster
		- #16: B changes track 15 degrees
			-traffic 6 oclock  but not passing
-B moves to 3 oclock 1000ft lower,  1 mile, out parallel tracks
	- changes track 10 degress left of A
		- #17:intersection but not on extended track
	- changes track to 45 degrees left of B
		- #18: contact in x minutes

- try  other voice ,which is better in cockpit?

Several packages need to be included in the base build, I haven’t seen any interest
in including these.  I’ve got a one off build that I’ll have to dust off if we can get
test aircraft.

I suspect packages will not be added to the main build until testing is done, they would just be extra and unused.  This adds risk to the release until something that uses them is validated.  (Not speaking for the project, but I suspect that's why they haven't been added yet.)

And Bluetooth needs to be configured.

What is bluetooth used for?  What connections should it support?

that makes sense
Bluetooth is to get audio to headset – eg Lightspeed – otherwise need to run an audio cable either to headset (cumbersome)
or audio panel which might not be available….
so convenient but not essential I guess
Cameron Fraser
+1<PHONE_NUMBER>
From: cobraPA<EMAIL_ADDRESS>Sent: Wednesday, September 05, 2018 7:33 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Several packages need to be included in the base build, I haven’t seen any interest
in including these. I’ve got a one off build that I’ll have to dust off if we can get
test aircraft.
I suspect packages will not be added to the main build until testing is done, they would just be extra and unused. This adds risk to the release until something that uses them is validated. (Not speaking for the project, but I suspect that's why they haven't been added yet.)
And Bluetooth needs to be configured.
What is bluetooth used for? What connections should it support?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-418943974 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcIMqkJnrlvsiWC9P96QGzwoAGCWVks5uYIlygaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcNN_t0TXrODwGcryOXnoNtUjcmmcks5uYIlygaJpZM4P3NGU.gif

I'm working on an image for my own use, I may be able to post something you could use as well.
Another question, I'm curious about your traffic algorithm.  I'd like to test traffic notices on a local OLED display.  Is it all your own custom code?  How are you doing the proximity detection?

Yes my code but cyoung did the heavy lifting putting in hooks that I used…
Its not about proximity – it is about potential path intersection
A nearby aircraft headed away is of no interest..
Simple linear geometry -   with speed and direction known you can calculate intersection point and arrival times of each aircraft at that point
and there are special cases  for head on collision  , overtaking and overtaken.
I can post code when we get some testing done –
the key package to use mpmath for trig stuff  and sympy for solving linear equations (amazing package)
I can post the key bit if you like – the bulk of it is just lots of filtering and scenario checking….
I also used plotly and did plots of intersection for my bench testing
regards
Cameron Fraser
+1<PHONE_NUMBER>
From: cobraPA<EMAIL_ADDRESS>Sent: Wednesday, September 12, 2018 7:01 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I'm working on an image for my own use, I may be able to post something you could use as well.
Another question, I'm curious about your traffic algorithm. I'd like to test traffic notices on a local OLED display. Is it all your own custom code? How are you doing the proximity detection?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-420857582 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEQrcB0wHMTFWoxoUQsswdLQAdL_HnyCks5uabxcgaJpZM4P3NGU .  https://github.com/notifications/beacon/AEQrcPxph0kGHNI6FCJEwT5JH9TdoK5hks5uabxcgaJpZM4P3NGU.gif

I'd like to help if I could.
I fly out of Paine Field in Washington - any other stratux developers that
need test flights?
David
On Wed, Sep 12, 2018 at 7:28 PM cbfraser<EMAIL_ADDRESS>wrote:

Yes my code but cyoung did the heavy lifting putting in hooks that I used…
Its not about proximity – it is about potential path intersection
A nearby aircraft headed away is of no interest..
Simple linear geometry - with speed and direction known you can calculate
intersection point and arrival times of each aircraft at that point
and there are special cases for head on collision , overtaking and
overtaken.
I can post code when we get some testing done –
the key package to use mpmath for trig stuff and sympy for solving linear
equations (amazing package)
I can post the key bit if you like – the bulk of it is just lots of
filtering and scenario checking….
I also used plotly and did plots of intersection for my bench testing
regards
Cameron Fraser
+1<PHONE_NUMBER>
From: cobraPA<EMAIL_ADDRESS>Sent: Wednesday, September 12, 2018 7:01 PM
To: cyoung/stratux
Cc: cbfraser; Mention
Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I'm working on an image for my own use, I may be able to post something
you could use as well.
Another question, I'm curious about your traffic algorithm. I'd like to
test traffic notices on a local OLED display. Is it all your own custom
code? How are you doing the proximity detection?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <
https://github.com/cyoung/stratux/issues/670#issuecomment-420857582> , or
mute the thread <
https://github.com/notifications/unsubscribe-auth/AEQrcB0wHMTFWoxoUQsswdLQAdL_HnyCks5uabxcgaJpZM4P3NGU>
. <
https://github.com/notifications/beacon/AEQrcPxph0kGHNI6FCJEwT5JH9TdoK5hks5uabxcgaJpZM4P3NGU.gif>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-420862108, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOxOe17TfAku_IyPwsRsG9COY55eFjycks5uacKxgaJpZM4P3NGU
.

My testing needs 2 aircraft,, 3 people....
Cameron Fraser604 500 4682
-------- Original message --------From: d-c-d<EMAIL_ADDRESS>Date: 2018-09-13  05:42  (GMT-08:00) To: cyoung/stratux<EMAIL_ADDRESS>Cc: cbfraser<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
I'd like to help if I could.
I fly out of Paine Field in Washington - any other stratux developers that
need test flights?
David
On Wed, Sep 12, 2018 at 7:28 PM cbfraser<EMAIL_ADDRESS>wrote:

Yes my code but cyoung did the heavy lifting putting in hooks that I used…

Its not about proximity – it is about potential path intersection

A nearby aircraft headed away is of no interest..

Simple linear geometry - with speed and direction known you can calculate

intersection point and arrival times of each aircraft at that point

and there are special cases for head on collision , overtaking and

overtaken.

I can post code when we get some testing done –

the key package to use mpmath for trig stuff and sympy for solving linear

equations (amazing package)

I can post the key bit if you like – the bulk of it is just lots of

filtering and scenario checking….

I also used plotly and did plots of intersection for my bench testing

regards

Cameron Fraser

+1<PHONE_NUMBER>

From: cobraPA<EMAIL_ADDRESS>

Sent: Wednesday, September 12, 2018 7:01 PM

To: cyoung/stratux

Cc: cbfraser; Mention

Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)

I'm working on an image for my own use, I may be able to post something

you could use as well.

Another question, I'm curious about your traffic algorithm. I'd like to

test traffic notices on a local OLED display. Is it all your own custom

code? How are you doing the proximity detection?

—

You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub <

https://github.com/cyoung/stratux/issues/670#issuecomment-420857582> , or

mute the thread <

https://github.com/notifications/unsubscribe-auth/AEQrcB0wHMTFWoxoUQsswdLQAdL_HnyCks5uabxcgaJpZM4P3NGU>

. <

https://github.com/notifications/beacon/AEQrcPxph0kGHNI6FCJEwT5JH9TdoK5hks5uabxcgaJpZM4P3NGU.gif>

—

You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub

https://github.com/cyoung/stratux/issues/670#issuecomment-420862108, or mute

the thread

https://github.com/notifications/unsubscribe-auth/AOxOe17TfAku_IyPwsRsG9COY55eFjycks5uacKxgaJpZM4P3NGU

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/cyoung/stratux","title":"cyoung/stratux","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/cyoung/stratux"}},"updates":{"snippets":[{"icon":"PERSON","message":"@d-c-d in #670: I'd like to help if I could.\n\nI fly out of Paine Field in Washington - any other stratux developers that\nneed test flights?\n\nDavid\n\nOn Wed, Sep 12, 2018 at 7:28 PM cbfraser<EMAIL_ADDRESS>wrote:\n\n\u003e Yes my code but cyoung did the heavy lifting putting in hooks that I used…\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e Its not about proximity – it is about potential path intersection\n\u003e\n\u003e\n\u003e\n\u003e A nearby aircraft headed away is of no interest..\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e Simple linear geometry - with speed and direction known you can calculate\n\u003e intersection point and arrival times of each aircraft at that point\n\u003e\n\u003e\n\u003e\n\u003e and there are special cases for head on collision , overtaking and\n\u003e overtaken.\n\u003e\n\u003e\n\u003e\n\u003e I can post code when we get some testing done –\n\u003e\n\u003e the key package to use mpmath for trig stuff and sympy for solving linear\n\u003e equations (amazing package)\n\u003e\n\u003e I can post the key bit if you like – the bulk of it is just lots of\n\u003e filtering and scenario checking….\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e I also used plotly and did plots of intersection for my bench testing\n\u003e\n\u003e\n\u003e\n\u003e regards\n\u003e\n\u003e\n\u003e\n\u003e Cameron Fraser\n\u003e\n\u003e +1<PHONE_NUMBER>\n\u003e\n\u003e\n\u003e\n\u003e From: cobraPA<EMAIL_ADDRESS>Sent: Wednesday, September 12, 2018 7:01 PM\n\u003e To: cyoung/stratux\n\u003e Cc: cbfraser; Mention\n\u003e Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)\n\u003e\n\u003e\n\u003e\n\u003e I'm working on an image for my own use, I may be able to post something\n\u003e you could use as well.\n\u003e\n\u003e Another question, I'm curious about your traffic algorithm. I'd like to\n\u003e test traffic notices on a local OLED display. Is it all your own custom\n\u003e code? How are you doing the proximity detection?\n\u003e\n\u003e —\n\u003e You are receiving this because you were mentioned.\n\u003e Reply to this email directly, view it on GitHub \u003c\n\u003e https://github.com/cyoung/stratux/issues/670#issuecomment-420857582\u003e , or\n\u003e mute the thread \u003c\n\u003e https://github.com/notifications/unsubscribe-auth/AEQrcB0wHMTFWoxoUQsswdLQAdL_HnyCks5uabxcgaJpZM4P3NGU\u003e\n\u003e . \u003c\n\u003e https://github.com/notifications/beacon/AEQrcPxph0kGHNI6FCJEwT5JH9TdoK5hks5uabxcgaJpZM4P3NGU.gif\u003e\n\u003e\n\u003e\n\u003e —\n\u003e You are receiving this because you are subscribed to this thread.\n\u003e Reply to this email directly, view it on GitHub\n\u003e \u003chttps://github.com/cyoung/stratux/issues/670#issuecomment-420862108\u003e, or mute\n\u003e the thread\n\u003e \u003chttps://github.com/notifications/unsubscribe-auth/AOxOe17TfAku_IyPwsRsG9COY55eFjycks5uacKxgaJpZM4P3NGU\u003e\n\u003e .\n\u003e\n"}],"action":{"name":"View Issue","url":"https://github.com/cyoung/stratux/issues/670#issuecomment-420992547"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/cyoung/stratux/issues/670#issuecomment-420992547",
"url": "https://github.com/cyoung/stratux/issues/670#issuecomment-420992547",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)",
"sections": [
{
"text": "",
"activityTitle": "d-c-d",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@d-c-d",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueComment",\n"repositoryFullName": "cyoung/stratux",\n"issueId": 670,\n"IssueComment": "{{IssueComment.value}}"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "cyoung/stratux",\n"issueId": 670\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/cyoung/stratux/issues/670#issuecomment-420992547"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "MuteNotification",\n"threadId": 266129812\n}"
}
],
"themeColor": "26292E"
}
]

Where are you guys on this. I am in south florida and have an ads-b out aircraft, and could round up the others needed for test flights.

I've revived this because I'm planning on upgrading my aircraft to ADSB and there is enough ADSB traffic near by to do bench testing.   If anyone interested in flight testing I can post current code. Not packaged so need to be technical enough to flash, ,ssh etc.

I've revived this because I'm planning on upgrading my aircraft to ADSB and there is enough ADSB traffic near by to do bench testing.   If anyone interested in flight testing I can post current code. Not packaged so need to be technical enough to flash, ,ssh etc.

Is there any need to change hardware, or do I plug stratux into aux input
for my intercom? If simply updating flash, I will be willing to flight
test.
I do not want alerts at 6NM however. Is a filter implemented, and
adjustable.
On Wed, Jan 27, 2021 at 1:40 PM cbfraser<EMAIL_ADDRESS>wrote:

I've revived this because I'm planning on upgrading my aircraft to ADSB
and there is enough ADSB traffic near by to do bench testing. If anyone
interested in flight testing I can post current code. Not packaged so need
to be technical enough to flash, ,ssh etc.
[image: Capture]
https://user-images.githubusercontent.com/4467568/106037770-f4e06780-608b-11eb-842e-d4a600fc0cbc.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768490865, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHAT66GOCLI55FMPMBZR2LLS4BM25ANCNFSM4D642GKA
.

Is there any need to change hardware, or do I plug stratux into aux input
for my intercom? If simply updating flash, I will be willing to flight
test.
I do not want alerts at 6NM however. Is a filter implemented, and
adjustable.
On Wed, Jan 27, 2021 at 1:40 PM cbfraser<EMAIL_ADDRESS>wrote:

I've revived this because I'm planning on upgrading my aircraft to ADSB
and there is enough ADSB traffic near by to do bench testing. If anyone
interested in flight testing I can post current code. Not packaged so need
to be technical enough to flash, ,ssh etc.
[image: Capture]
https://user-images.githubusercontent.com/4467568/106037770-f4e06780-608b-11eb-842e-d4a600fc0cbc.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768490865, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHAT66GOCLI55FMPMBZR2LLS4BM25ANCNFSM4D642GKA
.

no h/w change – I’m using audio port although if someone could configure
Bluetooth that would be nice.
It is more involved that just flashing an image but yes configurable
for distance, vertical separation and collision….
With some more testing I may create a complete image.
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and reads all the traffic messages on the websocket interface and generates audio traffic and collision alerts.
It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's altitude, distance, ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether traffic is getting closer and optionally calcuates potential collision.
Audio is paced at a system output rate and a rate for a target.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by near miss time window but disregards relative altitudes. It will predict ship & target crossing headon or from behind or at an intersection.
Collision alerts are of the form "Headon  in 1 minute", "Passing  in 1 minute", "Overtaking  1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses prerecorded voice. This sounds better but is limited to 20 miles and 12 minutes. It does allow for other languages.
A simple webpage displays current traffic and stats. <IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Defects & suggestions<EMAIL_ADDRESS>Cameron Fraser
+1<PHONE_NUMBER>
From: John Schreiber<EMAIL_ADDRESS>Sent: Wednesday, January 27, 2021 12:24 PM
To: cyoung/stratux<EMAIL_ADDRESS>Cc: cbfraser<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Is there any need to change hardware, or do I plug stratux into aux input
for my intercom? If simply updating flash, I will be willing to flight
test.
I do not want alerts at 6NM however. Is a filter implemented, and
adjustable.
On Wed, Jan 27, 2021 at 1:40 PM cbfraser<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

I've revived this because I'm planning on upgrading my aircraft to ADSB
and there is enough ADSB traffic near by to do bench testing. If anyone
interested in flight testing I can post current code. Not packaged so need
to be technical enough to flash, ,ssh etc.
[image: Capture]
https://user-images.githubusercontent.com/4467568/106037770-f4e06780-608b-11eb-842e-d4a600fc0cbc.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768490865, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHAT66GOCLI55FMPMBZR2LLS4BM25ANCNFSM4D642GKA
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-768553487 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCCW4EG7CS4R374BFTWIYDS4BY5ZANCNFSM4D642GKA .  https://github.com/notifications/beacon/ABCCW4C5EXHN36ONJJCVMWLS4BY5ZA5CNFSM4D642GKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXHTEDY.gif

no h/w change – I’m using audio port although if someone could configure
Bluetooth that would be nice.
It is more involved that just flashing an image but yes configurable
for distance, vertical separation and collision….
With some more testing I may create a complete image.
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and reads all the traffic messages on the websocket interface and generates audio traffic and collision alerts.
It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's altitude, distance, ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether traffic is getting closer and optionally calcuates potential collision.
Audio is paced at a system output rate and a rate for a target.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by near miss time window but disregards relative altitudes. It will predict ship & target crossing headon or from behind or at an intersection.
Collision alerts are of the form "Headon  in 1 minute", "Passing  in 1 minute", "Overtaking  1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses prerecorded voice. This sounds better but is limited to 20 miles and 12 minutes. It does allow for other languages.
A simple webpage displays current traffic and stats. <IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Defects & suggestions<EMAIL_ADDRESS>Cameron Fraser
+1<PHONE_NUMBER>
From: John Schreiber<EMAIL_ADDRESS>Sent: Wednesday, January 27, 2021 12:24 PM
To: cyoung/stratux<EMAIL_ADDRESS>Cc: cbfraser<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Is there any need to change hardware, or do I plug stratux into aux input
for my intercom? If simply updating flash, I will be willing to flight
test.
I do not want alerts at 6NM however. Is a filter implemented, and
adjustable.
On Wed, Jan 27, 2021 at 1:40 PM cbfraser<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

I've revived this because I'm planning on upgrading my aircraft to ADSB
and there is enough ADSB traffic near by to do bench testing. If anyone
interested in flight testing I can post current code. Not packaged so need
to be technical enough to flash, ,ssh etc.
[image: Capture]
https://user-images.githubusercontent.com/4467568/106037770-f4e06780-608b-11eb-842e-d4a600fc0cbc.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768490865, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHAT66GOCLI55FMPMBZR2LLS4BM25ANCNFSM4D642GKA
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cyoung/stratux/issues/670#issuecomment-768553487 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCCW4EG7CS4R374BFTWIYDS4BY5ZANCNFSM4D642GKA .  https://github.com/notifications/beacon/ABCCW4C5EXHN36ONJJCVMWLS4BY5ZA5CNFSM4D642GKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXHTEDY.gif

sounds great. too many items to watch these days.
On Wed, Jan 27, 2021 at 4:04 PM cbfraser<EMAIL_ADDRESS>wrote:

no h/w change – I’m using audio port although if someone could configure
Bluetooth that would be nice.
It is more involved that just flashing an image but yes configurable
for distance, vertical separation and collision….
With some more testing I may create a complete image.
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and
reads all the traffic messages on the websocket interface and generates
audio traffic and collision alerts.
It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or
omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's
altitude, distance, ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether
traffic is getting closer and optionally calcuates potential collision.
Audio is paced at a system output rate and a rate for a target.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by near miss time window but disregards
relative altitudes. It will predict ship & target crossing headon or from
behind or at an intersection.
Collision alerts are of the form "Headon in 1 minute", "Passing in 1
minute", "Overtaking 1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses
prerecorded voice. This sounds better but is limited to 20 miles and 12
minutes. It does allow for other languages.
A simple webpage displays current traffic and stats.
<IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Defects & suggestions<EMAIL_ADDRESS>Cameron Fraser
+1<PHONE_NUMBER>
From: John Schreiber<EMAIL_ADDRESS>Sent: Wednesday, January 27, 2021 12:24 PM
To: cyoung/stratux<EMAIL_ADDRESS>Cc: cbfraser<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Is there any need to change hardware, or do I plug stratux into aux input
for my intercom? If simply updating flash, I will be willing to flight
test.
I do not want alerts at 6NM however. Is a filter implemented, and
adjustable.
On Wed, Jan 27, 2021 at 1:40 PM cbfraser<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

I've revived this because I'm planning on upgrading my aircraft to ADSB
and there is enough ADSB traffic near by to do bench testing. If anyone
interested in flight testing I can post current code. Not packaged so
need
to be technical enough to flash, ,ssh etc.
[image: Capture]
<
https://user-images.githubusercontent.com/4467568/106037770-f4e06780-608b-11eb-842e-d4a600fc0cbc.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768490865,
or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AHAT66GOCLI55FMPMBZR2LLS4BM25ANCNFSM4D642GKA
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <
https://github.com/cyoung/stratux/issues/670#issuecomment-768553487> , or
unsubscribe <
https://github.com/notifications/unsubscribe-auth/ABCCW4EG7CS4R374BFTWIYDS4BY5ZANCNFSM4D642GKA>
. <
https://github.com/notifications/beacon/ABCCW4C5EXHN36ONJJCVMWLS4BY5ZA5CNFSM4D642GKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXHTEDY.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768575846, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHAT66B52BVDVLTVAN4QPB3S4B5UFANCNFSM4D642GKA
.

sounds great. too many items to watch these days.
On Wed, Jan 27, 2021 at 4:04 PM cbfraser<EMAIL_ADDRESS>wrote:

no h/w change – I’m using audio port although if someone could configure
Bluetooth that would be nice.
It is more involved that just flashing an image but yes configurable
for distance, vertical separation and collision….
With some more testing I may create a complete image.
Audio Alerts:
Audio alerts is set of python scripts that runs on the Stratux build and
reads all the traffic messages on the websocket interface and generates
audio traffic and collision alerts.
It was made possible by Chris providing a python hook to his Stratux build.
Requirements:
As well as Stratux - mpmath, sympy, websocket, backports, espeak and/or
omxplayer
Operation:
Audio alerts initially filters traffic messages based on target's
altitude, distance, ground status and ship's GPS status.
After that it tracks that traffic and optionally filters on whether
traffic is getting closer and optionally calcuates potential collision.
Audio is paced at a system output rate and a rate for a target.
Traffic alerts are of the form "Traffic 12 oh clock high 6 miles"
Collision alerts are filtered by near miss time window but disregards
relative altitudes. It will predict ship & target crossing headon or from
behind or at an intersection.
Collision alerts are of the form "Headon in 1 minute", "Passing in 1
minute", "Overtaking 1 minute", "Contact in 1 minute"
Audio is either espeak rather robotic but complete or omxplayer which uses
prerecorded voice. This sounds better but is limited to 20 miles and 12
minutes. It does allow for other languages.
A simple webpage displays current traffic and stats.
<IP_ADDRESS>/audio.html
Bluetooth not supported - hopefully someone will document setup.
Defects & suggestions<EMAIL_ADDRESS>Cameron Fraser
+1<PHONE_NUMBER>
From: John Schreiber<EMAIL_ADDRESS>Sent: Wednesday, January 27, 2021 12:24 PM
To: cyoung/stratux<EMAIL_ADDRESS>Cc: cbfraser<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [cyoung/stratux] Feature request - Traffic audio alerts (#670)
Is there any need to change hardware, or do I plug stratux into aux input
for my intercom? If simply updating flash, I will be willing to flight
test.
I do not want alerts at 6NM however. Is a filter implemented, and
adjustable.
On Wed, Jan 27, 2021 at 1:40 PM cbfraser<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

I've revived this because I'm planning on upgrading my aircraft to ADSB
and there is enough ADSB traffic near by to do bench testing. If anyone
interested in flight testing I can post current code. Not packaged so
need
to be technical enough to flash, ,ssh etc.
[image: Capture]
<
https://user-images.githubusercontent.com/4467568/106037770-f4e06780-608b-11eb-842e-d4a600fc0cbc.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768490865,
or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AHAT66GOCLI55FMPMBZR2LLS4BM25ANCNFSM4D642GKA
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <
https://github.com/cyoung/stratux/issues/670#issuecomment-768553487> , or
unsubscribe <
https://github.com/notifications/unsubscribe-auth/ABCCW4EG7CS4R374BFTWIYDS4BY5ZANCNFSM4D642GKA>
. <
https://github.com/notifications/beacon/ABCCW4C5EXHN36ONJJCVMWLS4BY5ZA5CNFSM4D642GKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXHTEDY.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cyoung/stratux/issues/670#issuecomment-768575846, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHAT66B52BVDVLTVAN4QPB3S4B5UFANCNFSM4D642GKA
.

Here is an image that starts audio alerts on boot.  Burn image and connect to audio jack.
Configure by editing audio_alerts.txt and use winscp(windows) or andFTP(android) to copy that file from/to theStratux. Zip file is an image from 16GB SD card.
https://drive.google.com/drive/folders/1g9YYz7hIjP7-5d-PSo6aqaohBuIIs3Ur?usp=sharing
audio_alerts.txt
overview.txt
For anyone intestested in testing with a 2nd aircraft that has ADSB out I have a suggested test plan.


Replace icon for authority office / office

Short description

Replace icon for authority office with a less negative icon
Proposed changes

Replace SVG file

Side effects

None
Resolved issues

Fixes: #2800

Pull Request Review Guidelines

Isn't this the common icon for museums? 🤔

Maybe a release note? 😺

Good point. I was torn as I was thinking that this is probably nothing the CMS users really notice, but they do (in the apps), right?

Maybe a release note? 😺

Good point. I was torn as I was thinking that this is probably nothing the CMS users really notice, but they do (in the apps), right?

Yes :)