This accessor uses the dump1090 driver to access a Software-Defined Radio such as the NooElec R820T (http://www.nooelec.com/store/sdr/sdr-receivers/nesdr-mini-rtl2832-r820t.html) in order to receive and parse ADS-B messages. ADS-B is a cooperative surveillance technology in which an aircraft periodically broadcasts its state such as location, altitude, heading, etc. In order to run this accessor you need to compile the dump1090 driver from https://github.com/MalcolmRobb/dump1090, plug your SDR USB dongle, and run ./dump1090 --net --interactive One can also feed the accessor with a reference location (e.g. from an autopilot) and a threshold parameter. If a reference location is provided, the accessor retrieves all the aircrafts within the threshold distance in the output "traffic"
- Version:
- $$Id$$
- Source:
Inputs:
Name | Type | Description |
---|---|---|
|
trigger | |
latRef |
double | Latitude of the reference location |
lonRef |
double | Longitude of the reference location |
altRef |
double | Altitude of the reference location |
Outputs:
Name | Type | Description |
---|---|---|
aircrafts |
object | An object mapping aircraft flight IDs to aircraft state |
traffic |
object | Aircrafts within a threshold distance of the reference location |
Parameters:
Name | Type | Description |
---|---|---|
dump1090Server |
string | The address of the web server created by dump1090 |
port |
int | The port of the web server created by dump1090 |
timeToLiveIfNotUpdated |
int | The time interval in millisecond after which an aircraft is removed from the list in case an update is not received from the SDR device |
threshold |
double | Threshold distance in kilometers |
Methods
(static) filterResponse()
Filter the response, extracting the aircrat information. The full response is produced on the 'response' output.
(static) setup()
Set up the accessor by defining the inputs and outputs.