Commit Graph

1912 Commits

Author SHA1 Message Date
eric1tran f4f2f3ddad Add filtering by aircraft type 2020-12-08 17:24:09 +00:00
Oliver Jowett c1eeda612e fifo_acquire / fifo_dequeue: maybe fix pthread_cond_timedwait error handling
It was possible, due to an off-by-one error in normalize_timespec, that
the computed deadline passed to pthread_cond_timedwait had tv_nsec == 1000000000.
glibc would reject this with EINVAL. While I never caught this in the act, there
seem to be two follow-on problems from this:

1) we were looking for a negative return from pthread_cond_timedwait and testing errno.
This is not how errors are reported, instead pthread functions return the error value
directly. So the enclosing loop could spin forever, repeatedly passing the bad deadline
value.

2) even if the error handling caught the EINVAL return, it assumed that the mutex was
no longer held and didn't release it; but on error returns, the mutex state is actually
untouched.

Fix both cases (probably), and log about unusual returns from pthread_cond_timedwait
2020-11-17 19:59:59 +08:00
Oliver Jowett 5c043e8496 normalize_timespec: handle tv_nsec == 1000000000 correctly 2020-11-17 19:59:47 +08:00
Eric Tran e48006311b Fix type on SkyAware README 2020-10-12 03:08:41 +00:00
Oliver Jowett f0055c978d Avoid false positives for address 000000 in the icao filter hashtable 2020-10-08 19:30:06 +08:00
Eric Tran 66f26846b8 Merge branch 'master' into dev 2020-10-02 16:36:11 +00:00
MAUGIN Thomas 9fb1e5b9e8
fix(html): add empty coordinates to constructor (#82)
- Change LineString constructor creation, see deprecated null constructor https://github.com/openlayers/openlayers/blob/main/changelog/upgrade-notes.md#v510
2020-10-02 10:52:51 -05:00
Eric Tran 4cde98e063
Fix up SkyAware README 2020-10-01 09:36:46 -05:00
Oliver Jowett c3cd1ec0de limesdr: use --gain (in dB) if --limesdr-gain was not specified 2020-10-01 13:53:50 +08:00
Oliver Jowett 016cb8f9d2
Merge pull request #81 from gtjoseph/dev-for-fa
Interactive mode updates
2020-10-01 00:47:42 -05:00
Oliver Jowett dc2f47796c 4.1~dev for the dev branch 2020-10-01 13:46:22 +08:00
Eric Tran e00935c8d2
SkyAware README 2020-09-29 22:53:34 -05:00
George Joseph 68e95c06cc Interactive mode updates
These updates were designed to assist those using interactive
mode to tune antennas and SDR gain.

* Add options to display distance and bearing in interactive mode

  Distance and bearing instead of latitude and longitude can now be
  displayed in interactive mode using the following options to
  dump1090-fa and view1090-fa.

  --interactive-show-distance   Show aircraft distance and bearing
                                instead of aircraft lat/lon
                                (requires --lat and --lon)
  --interactive-distance-units  Distance units ('km', 'sm', 'nm')
                                (default: 'nm')"

  You have to specify a reference --lat and --lon for this to
  work of course.

* A new line now shows at the top of the interactive display that
  has for the current sample:

  Total valid aircraft count
  Vidible aircraft count
     Will be less than total if the screen hasn't enough lines to show
     them all.
  Max RSSI
  Min RSSI
  Mean RSSI
  Max Distance

 Tot:  47 Vis:  47 RSSI: Max 25.4+ Mean -29.5 Min -36.9-  MaxD:  197.3nm+

* Add max distance and min/max RSSI indicators

  A '+' after the distance in a row indicates it's the row with the
  maximum distance.

  A '+' after the RSSI in a row indicates it's the row with the highest
  RSSI.

  A '-' after the RSSI in a row indicates it's the row with the lowest
  RSSI.

  The summary line at the top of the screen always shows the values for
  ALL aircraft, even those not visible.  The row indicators only mark
  visible rows though.

  In this example, the first aircraft is both the farthest away and has
  the weakest RSSI.  The second aircraft has the strongest RSSI.

 Tot:  47 Vis:  47 RSSI: Max 25.4+ Mean -29.5 Min -36.9-  MaxD:  197.3nm+     -
 Hex    Mode  Sqwk  Flight   Alt    Spd  Hdg  Dist(nm) Bearing  RSSI  Msgs  Ti
────────────────────────────────────────────────────────────────────────────────
 A8D5A4 S2                   34000  438  252   197.3+      85  -36.1-   26  2
 A39A13 S2ac  5740  FFT525   30750  439  256    98.8       68  -25.4+  123  0
 A70B23 S2ac  2744  LXJ553   43000  419  258   136.1       39  -33.6   174  0

* Finally, a new option '--interactive-callsign-filter' has been added
  to allow filtering interactive by callsign.  The value can be a
  simple string, in which case aircraft with that string anywhere in its
  callsign will be displayed, or a regular expression should you want a
  more precise match.

  Examples:
    --interactive-callsign-filter UAL
      will match all aircraft with UAL anywhere in its callsign.
    --interactive-callsign-filter "^UAL"
      will match only those callsigns that start with UAL.
    --interactive-callsign-filter "^(UAL|AAL)"
      will match only those callsigns that start with UAL or AAL.
    --interactive-callsign-filter "^N[0-9]" or "^N[[:digit:]]"
      will match only those callsigns that start with "N" and a number

  If you need more info on regular expressions, see this link:
  https://en.wikipedia.org/wiki/Regular_expression
2020-09-29 06:23:55 -06:00
Eric Tran 4f5f637dc1 Changelog edits 2020-09-24 15:39:52 +00:00
Eric Tran 863694761a Release 4.0 and update changelog 2020-09-24 15:31:52 +00:00
Eric Tran 3167459bfc Update README with current compressed csv file 2020-09-24 06:10:58 +00:00
Eric Tran 398728439b Update aircraft db to 20200924 2020-09-24 06:01:36 +00:00
eric1tran be9174a352 Bump script cache bust version 2020-09-23 13:03:08 -05:00
Eric Tran ff190286a6 Bump version to 4.0~dev 2020-09-21 15:31:46 +00:00
eric1tran 14ccaa93bd
README.md for geojson directory 2020-09-11 21:40:49 -05:00
Oliver Jowett 774c3cdd55
Merge pull request #79 from b3nn0/dev
Forward MLAT traffic to Stratux JSON output, marked with IsMlat:true in JSON
2020-09-11 21:16:01 -05:00
Eric Tran 24e58762b5 Remove dump1090.deb reference in Jenkinsfile breaking builds 2020-09-11 22:12:24 +00:00
Adrian Batzill 6714148c45 Forward MLAT traffic to Stratux JSON output, marked with IsMlat:true value in JSON 2020-09-10 10:20:21 +02:00
Oliver Jowett 6a4a239d0f
Merge pull request #78 from Gluttton/fix_trivial_typo
fix a trivial copy-paste typo in comments
2020-09-08 10:44:13 -05:00
Oliver Jowett 418e13e6b6 Merge PR #61 (Stratux output format support) plus fixes 2020-09-08 23:36:34 +08:00
Oliver Jowett 303dcc9915 Fix stratux output timestamps to really be UTC as they claim 2020-09-08 23:35:17 +08:00
Oliver Jowett 7356676c5b Don't need conditional output on the stratux port, that's done in prepareWrite() 2020-09-08 23:30:24 +08:00
Oliver Jowett 9b06099971 Enable net mode on bare stratux port option 2020-09-08 23:25:01 +08:00
Oliver Jowett da3e9766de Harden the stratux output a bit: use safe_snprintf, jsonEscapeString 2020-09-08 23:22:53 +08:00
Oliver Jowett ec90edcd8d Simpify stratux service init 2020-09-08 23:21:34 +08:00
Oliver Jowett bc9336e0be Revert "forward mlat messages to Stratux"
This reverts commit c89930b4b9.
2020-09-08 23:10:18 +08:00
Oliver Jowett 917aa6a0e2 Merge branch 'stratux' of https://github.com/Determinant/dump1090-fa-stratux into Determinant-stratux 2020-09-08 23:08:37 +08:00
Determinant c89930b4b9
forward mlat messages to Stratux 2020-09-07 15:36:34 -04:00
Gluttton 992f036fc2 fix a trivial copy-paste typo in comments
Signed-off-by: Gluttton <gluttton@ukr.net>
2020-08-31 22:53:14 +03:00
Determinant d25103361a
make change according to the suggestions 2020-08-30 21:21:49 -04:00
eric1tran ee552eb058 Fix capitalization 2020-08-28 10:45:33 -05:00
Oliver Jowett 1dbb8ab234 Expose modea_hit / modec_hit in aircraft.json 2020-08-24 15:03:17 +08:00
Oliver Jowett fba10d3262 Update FreeBSD instructions to use pkg not ports for pkgconf 2020-08-24 14:15:09 +08:00
eric1tran 798c0a3fa5 Enable and add more map layers 2020-08-19 19:58:51 +00:00
Oliver Jowett 1d3e5c03e9 More _WIN32 ifdef pruning 2020-08-11 13:51:16 +08:00
Oliver Jowett ddce32849d Tweak --net behaviour to simplify using a subset of network ports.
This tries to retain the existing behaviour of --net / --net-only
while making it easier to say "listen on only these specific ports".

If --net or --net-only is specified, network mode is enabled and
default port values are assumed for any port not otherwise specified
on the command line. Specifying a port of 0 disables that port. This
is the same as the old behavior.

If --net or --net-only is not specified, but at least one
of the --net-xxx-port options is specified, then network mode is
enabled with no default port value and only those ports explicitly
configured on the command line are used.

This means you can e.g. configure a port-30005-only SDR receiver
by specifying just "--net-bo-port 30005"; or configure a
network-receive-only receiver (e.g. for SkyAware display) by
"--device-type none --net-bi-port 30004,30104". These were possible
previously but required turning off a lot of the default ports.
2020-08-11 13:44:39 +08:00
Oliver Jowett 1d04174f37 Update macos build notes 2020-08-11 13:15:41 +08:00
Oliver Jowett e00d12f817 Update README for FreeBSD build notes. 2020-08-11 13:04:53 +08:00
Oliver Jowett 10b9bc6614 Handle builds with no SDR support better.
Reorder --ifile pseudo-sdr after the "none" SDR so that a build with no real
SDR support defaults to "none" not --ifile

If the "none" SDR was selected and network mode is not enabled, tell the
user about the problem rather than just failing to do anything useful.
2020-08-11 12:55:17 +08:00
Oliver Jowett 9237086b38 Fix on-exit memory leaks noticed by @Mictronics 2020-08-10 15:00:25 +08:00
eric1tran da3557fcfe Put aircraft count before page title 2020-08-09 00:33:59 -05:00
Assaf Sapir d353568c59
Fix MessageRate might be null and remove unused config (#71)
* Fix MessageRate might be null && unused config

* Page title edits

Co-authored-by: Eric Tran <eric1tran@gmail.com>
2020-08-08 18:26:57 -05:00
sigwx a0b0038df7
Control map via URL options (#58)
* Add URL options to hide different aspects of the default display, helpful for starting for a kiosk

* Fix spacing in changes

* More options to move map left/right/up/down

* Allow movement in all directions, consolidate some code

* Add controls for units and range rings from url

* Swap left/right,up/down behavior for map moves

* Convert #nohistory anchor tag to a query param like the other parameters. Make query parameters values explicitly state true

* Fix for enableRings so it will toggle the setting

* Use show/hide parameter values to avoid having a a showX/hideX parameter for each option, Rename some parameters, resize map when hiding banner/sidebar, cleanup

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: eric1tran <eric1tran@gmail.com>
2020-08-07 13:47:32 -05:00
Oliver Jowett af1f4f84a9 Merge PR #38 - OSX/FreeBSD/OpenBSD portabilty.
This is minimally tested on OSX, and not at all on *BSD.
Since I did some cleanups in the compat code without testing on *BSD,
it could well be broken there.

This may also fix #33 as #38 included those changes.
2020-08-07 15:09:22 +08:00
Oliver Jowett 286a6301f8 Try to clean up the compat stuff a bit 2020-08-07 15:08:45 +08:00