let me do this for you a little better
the gains you want are in double quotes space deliminated so if you want to do gains 1, 5, 10 you would set it up like
gain_choice = “1 5 10”
if you want to do gains 1, 2, 3, 4, 5 it would be
gain_choice = “1 2 3 4 5”
as a note the standard SDR’s that people use can only use certain gains and those are all predefined in the variable gains_all_00
aka if you ask the SDR to gain 1 it will choose the gain that it can use closest to the choice you made aka 0.9
that is why i have the variables setup for you if you want to test all gains from 0 to 20 combine the 2 variables gains_00_10 and gains_10_20 like
Do you see any errors that would prevent this from running on my Pi? Im still getting errors with BeautifulTable
pi@raspberrypi:~ $ sudo python3 gain_check_v3.py
Traceback (most recent call last):
File “gain_check_v3.py”, line 4, in
from beautifultable import BeautifulTable
File “/usr/local/lib/python3.5/dist-packages/beautifultable/init.py”, line 5, in
from .beautifultable import ( # noqa F401
File “/usr/local/lib/python3.5/dist-packages/beautifultable/beautifultable.py”, line 46, in
from .helpers import (
File “/usr/local/lib/python3.5/dist-packages/beautifultable/helpers.py”, line 293
raise Warning(f"Column header is not provided or invalid")
^
SyntaxError: invalid syntax
run each line individually and make sure all that they are successfull then you can run the script if you are in the same folder as follows and as I write this i notice that my run command in the first post doesn’t have the ./ in it so i will update that.
beautifultable dropped support for Python 3.4, 3.5, 3.6 in its newest version so since you are running python 3.5 you need to update it to a newer version or need to downgrade beautifultable to a previous version.
let me get the commands to do the python update for you.
Thanks! apparently Python 3.7 is a bridge too far (for now, planning on upgrading my pi with newer software, but I have a couple of packages running which are … delicate to say the least lol) but! beautifultable==1.0.1 worked perfectly and its showing up now! Thanks!!!Thanks!!!Thanks!!!Thanks!!!
I have run this script on my setup. Below is what it has given (I am still using the Nooelec NESDR Mini):
What should I do with this information? Asking for other novices.
hey so since you don’t have a lot of planes around you at the time you ran this, I would ask you to run it again in general when you have more planes like 2-4 pm in your timezone. I would also suggest you run more passes or longer passes or both.
Like 30 seconds a pass and 10 passes on the gains.
This will allow the data to normalize better so the picture will be more clear.
However according to the data you got it looks like you should set your gain to 32 and turn off adaptive gain and burst.
Hi. Thank you so much for the response. For starters, allow me to state that I am a complete novice in this ADSB stuff so I may not understand much beyond setting my LAT, LOG and ELEVATION values
So I will run this again as suggested (I have changed pass_duration to 30 and pass_number to 10) and I will run the script at around that time. BTW what data in there tells you that there are many planes around 2-4 pm? Pardon my ignorance.
I am yet to get a good RTL-SDB unit (coming in about 3 weeks) and a good antenna/positioning.
So, with the suggestion that I set my gain to 32 and turn off adaptive gain and burst, what I need to SET in /etc/defaults/dump1090-fa is:
RECEIVER_GAIN=32 # This was set to 60 initially
ADAPTIVE_DYNAMIC_RANGE=no # This was set to yes initially
ADAPTIVE_BURST=no #This was already the default
…and restart dump1090-fa.
But after doing that, does it still make sense to run the script, or should I wait to run the script around the suggested time and then only make changes after?