Skip to content

Commit

Permalink
autogain defaults tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 3, 2024
1 parent 8fd5acf commit 89fc774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ To tweak the internals, more parameters can be passed:
```
The defaults are:
```
--gain=auto-verbose,43.9,24,28,245
--gain=auto-verbose,43.9,25,31,245
```
The thresholds are numbers 0 to 256, tweaking them requires some understanding of how it works.
One option would be to change the noise thresholds up or down and then observe the log.
Expand Down
4 changes: 2 additions & 2 deletions readsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ static void configSetDefaults(void) {

// 8 bit autogain defaults, will be squared and compared against magnitude data
Modes.loudThreshold = 245;
Modes.noiseLowThreshold = 24;
Modes.noiseHighThreshold = 28;
Modes.noiseLowThreshold = 25;
Modes.noiseHighThreshold = 31;

Modes.freq = MODES_DEFAULT_FREQ;
Modes.check_crc = 1;
Expand Down

0 comments on commit 89fc774

Please sign in to comment.