Add basic ERT (OOK) utility meter reception.

Extracted the Manchester formatting function for use in ERT, now also returns an indication of bits in error.
This commit is contained in:
Jared Boone 2015-12-01 11:24:48 -08:00
parent 0c36a74351
commit 82ff45860e
8 changed files with 329 additions and 8 deletions

View file

@ -138,7 +138,8 @@ void ReceiverModel::disable() {
}
int32_t ReceiverModel::tuning_offset() {
if( baseband_configuration.mode == 4 ) {
if( (baseband_configuration.mode == 4) ||
(baseband_configuration.mode == 6) ) {
return 0;
} else {
return -(sampling_rate() / 4);