Lower default level limit to 8000

Max theoretical value is 16384 (values above is ripple due to
saturation). Decodes better signals with lower levels.
Analyses rtl_433_tests/tests/GT-WT-02/gfile003.data cleanly
This commit is contained in:
Tommy Vestermark
2015-08-09 23:17:11 +02:00
parent a8ea818551
commit 660cc2d40c
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
#define DEFAULT_HOP_EVENTS 2
#define DEFAULT_ASYNC_BUF_NUMBER 32
#define DEFAULT_BUF_LENGTH (16 * 16384)
#define DEFAULT_LEVEL_LIMIT 10000
#define DEFAULT_LEVEL_LIMIT 8000 // Theoretical high level at I/Q saturation is 128x128 = 16384 (above is ripple)
#define DEFAULT_DECIMATION_LEVEL 0
#define MINIMAL_BUF_LENGTH 512
#define MAXIMAL_BUF_LENGTH (256 * 16384)

View File

@@ -74,7 +74,7 @@ void usage(r_device *devices) {
"\t[-g gain (default: 0 for auto)]\n"
"\t[-a analyze mode, print a textual description of the signal]\n"
"\t[-t signal auto save, use it together with analyze mode (-a -t)\n"
"\t[-l change the detection level used to determine pulses (0-3200) default: %i]\n"
"\t[-l change the detection level used to determine pulses (0-32767) default: %i]\n"
"\t[-f [-f...] receive frequency[s], default: %i Hz]\n"
"\t[-s sample rate (default: %i Hz)]\n"
"\t[-S force sync output (default: async)]\n"