Commit Graph

271 Commits

Author SHA1 Message Date
Oliver Jowett f3e498a62a Treat the magic agc setting as just another gain step.
The legacy -10 value is still supported for compatbility with old
configs, but new configs should just select an appropriate gain e.g.
60dB.

rtlsdr default gain continues to be the highest regular gain step (~ 49.6dB)
2021-07-19 17:34:45 +08:00
Oliver Jowett d4b3b03fe0 Try to rewrite old-style config files to new-style config files
on upgrade to 6.0. (Not extensively tested yet)

We do this for two reasons:

1) the config file layout is completely different, it's error-prone
and tedious to force the user to manually transfer their customizations
on upgrade;

2) if there are user modifications to the config file, an upgrade triggered
remotely via piaware will prefer to keep the original config file intact
rather than installing the new version, and the old version just won't
work correctly with the new infrastructure.
2021-07-19 15:50:55 +08:00
Oliver Jowett ec69b94544 Overhaul of /etc/default/dump1090-fa
Now we have specific config options for different features rather
than just a big list of command-line options. You can still provide
custom options via EXTRA_OPTIONS or OVERRIDE_OPTIONS.

Also adds adaptive gain settings, and a "slow cpu" setting which
can turn on cpu-reducing options automatically when a slower (armv6)
CPU is in use.
2021-07-19 15:50:55 +08:00
eric1tran 223283863f 6.0~dev 2021-05-18 20:41:27 +00:00
Oliver Jowett d3c692f630 5.1~dev for the dev branch 2021-03-13 12:41:21 +08:00
eric1tran f862b530c8 Release 5.0 2021-03-11 13:08:06 +00:00
eric1tran bd3ec0cbdc Merge branch 'dev' into staging 2021-03-09 05:34:55 +00:00
eric1tran e7f9401722 Fix postinst file 2021-03-08 22:59:09 +00:00
eric1tran e7d39c9abb Enable skyaware module in postinst file 2021-03-08 19:29:41 +00:00
eric1tran 2c47717360 Have separate map url for new merged SkyAware. Set default port 8080 to this map 2021-03-08 18:23:20 +00:00
Oliver Jowett f36a0c6d38 More changelog 2021-03-08 16:37:19 +08:00
Oliver Jowett db53a09dbf Changelog updates 2021-03-08 16:28:07 +08:00
eric1tran 408a3e617a Bump version to 5 2021-03-05 13:22:02 +00:00
eric1tran e23cd7e73b Use /data for 1090 directory to avoid breaking exisiting tools like dump1090exporter that may be looking there 2021-02-25 06:00:43 +00:00
eric1tran 74b1a39aa0 Merge 1090 and UAT aircraft into one map
Squashed commit of the following:

commit ef61cba13698090b85fea3136bc77e320eab3d0d
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 04:39:22 2021 +0000

    Remove unused receiver clock code

commit 809cf656b5a098948fbfc5ce2b5f60f753fb4043
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 04:35:32 2021 +0000

    Avoid calling getDataSource() so many times and cleanup spacing

commit a0000b942bb5aa5f8061db0ca9d405461c6eea07
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 04:19:11 2021 +0000

    Copy paste bug

commit ccc3cd3964bddcd86e8faf45c06e577309cffb02
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 04:17:14 2021 +0000

    Filter UAT logic

commit 34dc860a16e1c57cdc3563ec31c45f9b1b133d4c
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 03:24:56 2021 +0000

    Reorder message rate text

commit 25db80799a2a6dc8e33835cb2ed43c305c87a4d8
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 00:56:43 2021 +0000

    Track 1090 and 978 message rate separately

commit a2031d13e4a447ad0f8de61eada75f0da019d1c2
Author: eric1tran <eric1tran@gmail.com>
Date:   Thu Feb 25 00:27:25 2021 +0000

    UAT classification logic

commit 5482274016eecfbc27f2b5de6779c032803ca177
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 23:13:39 2021 +0000

    Spacing

commit 2fc4408e6437ec5e0db2329d46a68fc6538abc45
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 22:57:05 2021 +0000

    Load UAT history.json files if UAT is enabled

commit 9ccf4eba7590b1f38c78aeb73209b48cb8e0c34f
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 22:24:23 2021 +0000

    ajax calls to fetch UAT aircraft json if enabled

commit d8f0c1c042bdba8ae1348a513df7dcca6ebc23fc
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 21:29:01 2021 +0000

    Read skyaware978 config files on initialization

commit 0245fa7449e92555b7631ab0365e43fb38e1c221
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 20:15:09 2021 +0000

    Change SkyAware url to /skyaware to genericize it for dual mode

commit 9384364b2473f8c73d3f165d7f5192c1995457a5
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 19:46:06 2021 +0000

    Add UAT toggle and description (non-functional)

commit 9b65a55c0ceb7c3da3b3515d26f0d5d42192f658
Author: eric1tran <eric1tran@gmail.com>
Date:   Wed Feb 24 19:32:54 2021 +0000

    Removed unused css
2021-02-25 05:43:10 +00:00
eric1tran 0aedcffc5b Version changes to 5.0~dev 2021-02-07 01:26:43 +00:00
Oliver Jowett bff71dc820
Move all converters to starch-based implementations (#97)
* Switch all conversion routines to use starch.

main user-visible changes:

 * ensure you check out submodules ('git clone --recurse-submodules")
 * --version shows the CPU features and DSP implementations in use
 * --wisdom allows overriding of the built-in architecture wisdom
 * --dcfilter no longer supported
 * "starch-benchmark" binary will benchmark all options on the
   current machine and can produce a wisdom file to feed to
   the --wisdom option

If you have a usecase for --dcfilter, please get in touch and
let me know - it's an edge case and for now there's no starch/DSP
support for it, but support can be written if needed.

In almost all cases the new conversion routines are slightly or
substantially faster than the old conversion routines. The only case
that is slower is SC16/SC16Q11 on a Pi 0, which is around 10% slower
due to changing from heavily approximated lookup tables to higher
quality results (but SC16 is probably already out of reach of a Pi 0)

* No need to build with SC16Q11_TABLE_BITS any more

* Add oneoff/uc8_capture_stats

(reads a UC8 capture; measures min/max/mean I and Q)

* Switch UC8 conversion to 127.4 center, 128 range.

Looking at actual UC8 captures from a RTL2832, the mean I and Q
are actually at 127.4, so use that as the zero point.

This means that the resulting I/Q maximum values could be as large as
127.6. Switch to 128 for simplicity.

* Switch to the new UC8 zero offset in benchmarks, fix some bugs

* Fix some bugs in SC16/SC16Q11 validation, tighten the max error requirements

* Ditch UC8 approximation path, add a NEON VRQSQRTE path.

* Tweak the SC16 exact path, add a new impl that uses a mix of
u32 & floats.

* SC16Q11 impl tweaks:

 * add a u32->float exact path
 * ditch the approximation path
 * add a NEON VRSQRTE path
 * add a 12-bit table path (using the full signed I/Q value, not absolute value)

* Ditch SC16 approximation path, add NEON vrsqrte path

* Add oneoff/dsp_error_measurement

This runs sample input through the DSP functions that are
allowed to be inexact and dumps the results as a TSV suitable for
feeding to gnuplot to look at the actual errors.

* Update make clean, make wisdom targets

* Update wisdom based on benchmarking

* Preserve the raw wisdom benchmark data

* Update to latest starch

* Update .gitignore for new wisdom files

* Update starch generated code

* Build starch-benchmark as part of the 'all' target

* Use wisdom from /etc/dump1090-fa/wisdom.local if present

* Package starch-benchmark and a helper script to generate local wisdom data

* Remove submodules in preparation for importing them directly

* Import cpu_features v0.6.0 from https://github.com/google/cpu_features/releases/tag/v0.6.0

* Import starch at commit a725c8491dc33a321565d451b385131e589d8490
from https://github.com/flightaware/starch
2021-01-21 19:45:00 +08:00
Oliver Jowett dc2f47796c 4.1~dev for the dev branch 2020-10-01 13:46:22 +08: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 ff190286a6 Bump version to 4.0~dev 2020-09-21 15:31:46 +00:00
Oliver Jowett c8d96acbdc Add support for custom builds that don't include all SDRs, to
reduce dependency requirements a little.

(Ideally we'd have some sort of module system here, and split
the dependencies out nicely into separate packages, but that's a
problem for other day; for now I can live with custom packages
having the same name as the full build, since we'll never
distribute them ourselves)
2020-08-06 14:06:20 +08:00
Oliver Jowett 48af886e46 Update maintainer address, clean up the control file a bit. 2020-08-06 14:05:55 +08:00
Oliver Jowett efb4c1f60f Drop the very legacy dump1090 upgrade package, assume nobody is using those
ancient packages any more.
2020-08-06 14:03:47 +08:00
Oliver Jowett f1bd1a5829 Packaging updates for limesdr support 2020-08-05 20:04:25 +08:00
Oliver Jowett 5261b98c95 Merge branch 'master' of https://github.com/kr105/dump1090 into kr105-master 2020-08-03 14:32:08 +08:00
Oliver Jowett 49d95744f2
Merge pull request #74 from ianrenton/master
Use set-response-header instead of add-response-header
2020-08-02 22:48:09 -05:00
Oliver Jowett 5b964f67b8
Merge pull request #66 from jwbernin/master
Add commented-out HTTPS configuration section
2020-08-02 22:38:32 -05:00
Oliver Jowett 92889d3497
Merge pull request #62 from flyingstar16/master
Load lighttpd alias module before using alias.url
2020-08-02 22:36:37 -05:00
Ian Renton c89e3b9e9e
Use set-response-header instead of add-response-header
When accessing Dump 1090 JSON from another web server, I found that the "Access-Control-Allow-Origin" parameter was set twice ("*, *") which Chrome objected to. By changing "add-response-header" to "set-response-header" we ensure that the correct header is sent, but never duplicated.
2020-07-26 09:27:02 +01:00
John Berninger ae12414eed Change SSL certificate and chain location example 2020-06-16 08:17:26 -04:00
John Berninger d3658b9fe6 Add mod_openssl module to avoid warning 2020-06-14 16:33:11 -04:00
John Berninger ba8f3e6af0 Add commented-out HTTPS configuration section
In recent versions of Firefox and (especially) Chrome, ".dev" domains are
force-redirected to a secure connection (HTTPS) instead of HTTP. Not
supporting an HTTPS connection makes for a bad user experience, so we want
to make enabling SSL support easy. Since we don't issue certificates, this
section is commented out by default, and it will require modification.

This is done primarily for PiAware, though it is applicable to just the
Dump1090 project.
2020-06-14 16:16:55 -04:00
Oliver Jowett 8879bcac86 Change 2-bit correction option to "--fix-2bit"
--fix --fix was a poor choice for this, as some existing configs
happened to specify --fix twice but only expected 1-bit correction.
So move 2-bit correction to a separate option.

"--fix" or "--fix --fix" now gives 1-bit correction.
"--fix-2bit" or "--fix --fix-2bit" or "--fix-2bit --fix" gives 2-bit correction.

Version bump to 3.8.2~dev
2020-05-02 14:55:36 +08:00
Claudio Moretti 0ff1275bf9 Comment-out the alias module load: disabled by default
Standard lighttpd will refuse to start if modules are loaded more than
once. Turn the module addition into a comment, explain why it's disabled
by default and in which cases you should enable it.
2020-04-03 14:26:25 +02:00
Claudio Moretti f1507d8f2e Load lighttpd alias module before using alias.url
On some instances of lighttpd, like the one that comes with PiHole, the
alias module is not loaded by default. This makes the configuration of
PiAware's lighttpd not work (see e.g.
https://discourse.pi-hole.net/t/pi-hole-and-piaware-lighttpd/9611).

This way we ensure that the alias module is loaded even on non-default
lighttpd configurations.
2020-04-03 11:50:51 +02:00
Eric Tran d6b8065c3b Release 3.8.1 2020-03-19 14:21:17 +00:00
Eric Tran 4241a9f1a0 Update changelog for 3.8.1 2020-03-19 14:20:22 +00:00
Eric Tran 439f615552 3.8.1~dev 2020-01-30 15:16:44 +00:00
Oliver Jowett c3541bcbea Release 3.8.0 2019-12-30 22:16:12 +08:00
Oliver Jowett 940c8e47ea Update changelog for 3.8.0 2019-12-16 11:05:07 -06:00
Carlos Pizarro 1223f7f29a
[HackRF] Added missing build configs and changed some functions to go along with the rest of the project. 2019-12-14 21:40:43 -03:00
Oliver Jowett 59170cbacb Tweak --net-ro-size / --net-ro-interval defaults 2019-12-02 13:49:48 +08:00
Oliver Jowett 4ab1938f97 Update package defaults to pass --fix (1-bit crc correction) to match the piaware-support generated config on sdcard images 2019-12-02 13:47:29 +08:00
Oliver Jowett c853db67d0 Remove duplicated --net-bo-port 30005 in default config 2019-12-02 13:40:23 +08:00
Oliver Jowett 36ae24838f 3.8.0~dev 2019-11-07 10:40:24 +08:00
Eric Tran ae4a89b707 Release 3.7.2 2019-09-09 14:29:26 +00:00
Eric Tran d9a78636a6 Version bump to 3.7.2~dev 2019-07-31 16:28:21 +00:00
Eric Tran 40614778bc Release v3.7.1 2019-05-03 12:37:46 -05:00
Eric Tran 4d683ac50c Version bump to 3.7.1~dev 2019-04-15 11:26:51 -05:00