sdr-enthusiasts / gitbook-adsb-guide

Guide to aircraft tracking using ADS-B reception with SDR & docker containers. Published on GitBook.
https://sdr-enthusiasts.gitbook.io/ads-b/
Other
128 stars 54 forks source link

autogain troubleshooting instructions don't seem to be accurate #124

Closed joelishness closed 1 year ago

joelishness commented 1 year ago

Excerpt from deploy-ultrafeeder-container.md:

To do this, please do the following. You may have to try different values instead of the value of 34 suggested here:

Set the READSB_AUTOGAIN_INITIAL_GAIN variable in the ultrafeeder section of your docker-compose file:

environment:
  - READSB_AUTOGAIN_INITIAL_GAIN=34

This does not seem to have any affect, triggering autogain does not respect this setting. I tried READSB_AUTOGAIN_INITIAL_GAIN=20, but it did not start at 20 as expected: image

Additionally, searching the ultrafeeder repo yields no results for "READSB_AUTOGAIN_INITIAL_GAIN" or "INITIAL_GAIN".

Does this environment variable really exist?

joelishness commented 1 year ago

Oh, I think it is likely because the container needs to be updated with the new variable before issuing the command.

So this would be out of order:

cd /opt/adsb
docker exec -it ultrafeeder autogain reset
docker compose up -d

Should be:

cd /opt/adsb
docker compose up -d
docker exec -it ultrafeeder autogain reset

But actually the reset command isn't correct anyway, should be:

cd /opt/adsb
docker compose up -d
docker exec -it ultrafeeder /usr/local/bin/autogain1090 reset

Per Pull request #122

jimmy-devine commented 1 year ago

+1, I was trying to set this too and it had no impact with READSB_AUTOGAIN_INITIAL_GAIN . Did you dig in to this at all? I suspect that wherever the initial gain is being set (outside of autogain) that it's not considering the variable. I'll post back if I find where it's happening.

kx1t commented 1 year ago

I'm going to close this issue:

If the issues persist, feel free to reopen this bug