sdr-enthusiasts/docker-readsb-protobuf

autogain script issue

dirkhh opened this issue · 1 comments

When in a place where a gain of 49.6 so overloads the SDR that it gets not messages at all, the script will keep sitting at the highest value and not progress.
The obvious solution would seem to be to pass in a lower value for AUTOGAIN_MAX_GAIN_VALUE, but that's insufficient when then simply restarting the readsb container as it just continues on the value that it already started on.

As a hackish workaround I documented in the GitBook that one can simply overwrite the /run/autogain/autogain_current_value with something like

docker exec -it readsb sh -c "/bin/echo 34 > /run/autogain/autogain_current_value"
docker restart readsb

but it would be nicer if this, too, could be handled via changes to the environment variable.

I been noticing this too. Thanks for coming up with workaround.