What's the easiest way of adding the choice of GAIN in Skyaware?

@chemitox

Just for academic interest, upgraded old Python 2 file optimize-gain-dump1090-fa-Jessie.py.

Now it works with Python 3 / dump1090-fa ver 6.1 / Buster & Bullseyse

CAUTION:

Wont work on Piaware SD Card image
Only for package install of dump1090-fa ver 6.1 on RaspiOS Buster & Bullseye.

https://github.com/abcd567a/optimize-gain/blob/main/README.md

 

HOW TO USE:

First command below is long.
Scroll rigt to see and copy it in full.

wget https://raw.githubusercontent.com/abcd567a/optimize-gain/main/optimize-gain-dump1090-fa.py  

sudo chmod +x optimize-gain-dump1090-fa.py   

sudo ./optimize-gain-dump1090-fa.py  

 

The script will start collecting data (Messages, Positions, Aircraft) from dump1090-fa port 30003, accumulated for 1 minute for each gain setting, and plot it like this:

READING AND SAVING SETTINGS BEFORE STARTING THE TEST
THESE SETTINGS WILL BE RESTORRED AT THE END OF THE TEST

RECEIVER_GAIN=60
ADAPTIVE_DYNAMIC_RANGE=yes

test 1 of 3
gain= 49.6 messages= 15355 positions= 2246 planes= 64
gain= 48.0 messages= 14567 positions= 2134 planes= 66
… …
… …
gain= 22.9 messages= 12550 positions= 1761 planes= 50
gain= 20.7 messages= 11623 positions= 1493 planes= 42

test 2 of 3
gain= 49.6 messages= 14568 positions= 2303 planes= 75
gain= 48.0 messages= 16294 positions= 2527 planes= 83
… …
… …
gain= 22.9 messages= 6526 positions= 970 planes= 36
gain= 20.7 messages= 4939 positions= 716 planes= 29

test 3 of 3
gain= 49.6 messages= 13931 positions= 2069 planes= 70
gain= 48.0 messages= 14354 positions= 2206 planes= 68
… …
… …
gain= 22.9 messages= 8225 positions= 1221 planes= 38
gain= 20.7 messages= 4584 positions= 744 planes= 31

===Totals===
Gain, Messages, Positions, Aircraft
49.6 62144 9687 223
48.0 62857 9809 225
44.5 59248 9281 233
43.9 57458 9058 221
43.4 58986 9212 227
42.1 61277 9380 234
40.2 61272 9640 223
38.6 60738 9487 217
37.2 61570 9359 213
36.4 59260 9004 210
33.8 60864 8987 214
32.8 59858 8921 212
29.7 57424 8505 199
28.0 55515 8273 187
25.4 51750 7437 169
22.9 46061 6549 158
20.7 37763 5143 131

SETTINGS RESTORED AT END OF TEST:
RECEIVER_GAIN=60
ADAPTIVE_DYNAMIC_RANGE=yes

 

image

 

image

 

1 Like