From e1b3e555f847399aba92e644c87ff2d46fd6c6d0 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Sat, 11 Jun 2011 22:07:20 -0700 Subject: [PATCH] cleanup --- src/lib/air_modes_preamble.cc | 23 ++++++++++------------- src/lib/air_modes_slicer.cc | 10 ++++------ 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/lib/air_modes_preamble.cc b/src/lib/air_modes_preamble.cc index e9e95fa..8f3b17f 100644 --- a/src/lib/air_modes_preamble.cc +++ b/src/lib/air_modes_preamble.cc @@ -55,19 +55,13 @@ air_modes_preamble::air_modes_preamble(int channel_rate, float threshold_db) : set_history(d_check_width); } -static int early_late(const float *data) { - if(data[-1] > data[0]) return -1; - else if(data[1] > data[0]) return 1; - else return 0; -} - static void integrate_and_dump(float *out, const float *in, int chips, int samps_per_chip) { for(int i=0; i= 10) continue; + if(rx_packet.message_type == 11 && rx_packet.numlowconf >= 10) continue; //if(rx_packet.numlowconf >= 24) continue; //don't even try, this is the maximum number of errors ECC could possibly correct