From 48ed7b1b1aaf2a22180e78f4ec2f61f9808b8dff Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Sun, 23 Apr 2023 01:33:42 -0500 Subject: [PATCH] Support for ERT SCM+ meter protocol --- firmware/baseband/proc_ert.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/baseband/proc_ert.cpp b/firmware/baseband/proc_ert.cpp index 9997704b..2bc8b858 100644 --- a/firmware/baseband/proc_ert.cpp +++ b/firmware/baseband/proc_ert.cpp @@ -87,6 +87,7 @@ void ERTProcessor::consume_symbol( ) { const uint_fast8_t sliced_symbol = (raw_symbol >= 0.0f) ? 1 : 0; scm_builder.execute(sliced_symbol); + scmplus_builder.execute(sliced_symbol); idm_builder.execute(sliced_symbol); } @@ -97,6 +98,13 @@ void ERTProcessor::scm_handler( shared_memory.application_queue.push(message); } +void ERTProcessor::scmplus_handler( + const baseband::Packet& packet +) { + const ERTPacketMessage message { ert::Packet::Type::SCMPLUS, packet }; + shared_memory.application_queue.push(message); +} + void ERTProcessor::idm_handler( const baseband::Packet& packet ) {