Reset limit changed to be compatible with 10ms minimum gap. That is OK,
as gap between messages is 9ms.
Tested with: rtl_433_tests/tests/prologue/01/gfile001.data
Implemented minimum and maximum gap times in addition to current
gap/pulse ratio. Changed values to be independent of sample rate.
Also made bitbuffer less noisy for decoders with small .long_limit
Tested with:
rtl_433_tests/tests/ambient_weather/01/f007th.data
rtl_433_tests/tests/cardin/01/S466-TX2_01.data
rtl_433_tests/tests/cardin/01/S466-TX2_02.data
rtl_433_tests/tests/fineoffset/01/gfile001.data
rtl_433_tests/tests/lacrosse/01/gfile001.data
rtl_433_tests/tests/lacrosse/01/gfile002.data
rtl_433_tests/tests/lacrosse/01/gfile006.data
rtl_433_tests/tests/oregon_scientific/01/BTHGN129.data
rtl_433_tests/tests/oregon_scientific/01/BTHR968.data
rtl_433_tests/tests/oregon_scientific/02/gfile003.data
rtl_433_tests/tests/prologue/01/gfile001.data
Converted to less CPU intensive decoding.
Tested before and after with the following data files:
rtl_433_tests/tests/cardin/01/S466-TX2_01.data
rtl_433_tests/tests/cardin/01/S466-TX2_02.data
Some test data files have too few "idle" samples at the end to ensure
end of packet is robustly detected. Decode an extra empty buffer to
ensure decoders are flushed.
Tested with the following data:
rtl_433 -r ~/rtl_433_tests/tests/lacrosse/01/gfile001.data
rtl_433 -r ~/rtl_433_tests/tests/lacrosse/01/gfile002.data
rtl_433 -r ~/rtl_433_tests/tests/lacrosse/01/gfile006.data
The conversion is tested successfully with the following datafiles:
rtl_433 -r ~/rtl_433_tests/tests/oregon_scientific/01/BTHGN129.data
rtl_433 -r ~/rtl_433_tests/tests/oregon_scientific/01/BTHR968.data
rtl_433 -r ~/rtl_433_tests/tests/oregon_scientific/02/gfile003.data
A pulse based Manchester demodulator is added based on the current
sample based manchester_decode() dunction.
The Ambient Weather sensor is converted and successfully tested to work.
With: rtl_433 -r ~/rtl_433_tests/tests/ambient_weather/01/f007th.data
The proofing of the new packet based pulse detection. The pulse
demodulator for PWM_RAW is added (with some minor corrections). The
fineoffset sensor is switched to the new decoder and tested to work
correctly (both with test data and live).
Made a prototype for a PWM pulse demodulator. Broke out bit_packet
functions into own file to avoid circular references and for clean up.
Compiles cleanly, but untested.
Initial attempt at making CPU efficient demodulation by making a common
data sample processing. The CPU intensive sample based demodulation will
be replaced by a common pulse detector outputting a pulse data structure
for further processing.