From 249e6ab21e0a02bdb9e9acf4bd9768184a83ac12 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 23 May 2016 11:22:09 -0700 Subject: [PATCH] TPMS: Improve descriptiveness of pipeline component names. --- firmware/baseband/proc_tpms.cpp | 4 ++-- firmware/baseband/proc_tpms.hpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/baseband/proc_tpms.cpp b/firmware/baseband/proc_tpms.cpp index 698394dd..83b96a1e 100644 --- a/firmware/baseband/proc_tpms.cpp +++ b/firmware/baseband/proc_tpms.cpp @@ -39,8 +39,8 @@ void TPMSProcessor::execute(const buffer_c8_t& buffer) { feed_channel_stats(decimator_out); for(size_t i=0; i, 16> rect_taps_307k2_1t_p { { +constexpr std::array, 16> rect_taps_307k2_38k4_1t_19k2_p { { { 6.2500000000e-02f, 0.0000000000e+00f }, { 4.4194173824e-02f, 4.4194173824e-02f }, { 0.0000000000e+00f, 6.2500000000e-02f }, { -4.4194173824e-02f, 4.4194173824e-02f }, { -6.2500000000e-02f, 0.0000000000e+00f }, { -4.4194173824e-02f, -4.4194173824e-02f }, @@ -71,16 +71,16 @@ private: dsp::decimate::FIRC8xR16x24FS4Decim4 decim_0; dsp::decimate::FIRC16xR16x16Decim2 decim_1; - dsp::matched_filter::MatchedFilter mf { rect_taps_307k2_1t_p, 8 }; + dsp::matched_filter::MatchedFilter mf_38k4_1t_19k2 { rect_taps_307k2_38k4_1t_19k2_p, 8 }; clock_recovery::ClockRecovery clock_recovery_fsk_19k2 { 38400, 19200, { 0.0555f }, [this](const float raw_symbol) { const uint_fast8_t sliced_symbol = (raw_symbol >= 0.0f) ? 1 : 0; - this->packet_builder.execute(sliced_symbol); + this->packet_builder_fsk_19k2_schrader.execute(sliced_symbol); } }; - PacketBuilder packet_builder { + PacketBuilder packet_builder_fsk_19k2_schrader { { 0b010101010101010101010101010110, 30, 1 }, { }, { 160 },