From 0da48b099c7e7faaf5ac9855fe25fd10b2eb8aba Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 6 Jun 2016 10:34:39 -0700 Subject: [PATCH] Add RF amp field to TPMS, capture modes. --- firmware/application/capture_app.cpp | 1 + firmware/application/capture_app.hpp | 6 +++++- firmware/application/tpms_app.cpp | 1 + firmware/application/tpms_app.hpp | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/firmware/application/capture_app.cpp b/firmware/application/capture_app.cpp index 4ad9d823..218b0583 100644 --- a/firmware/application/capture_app.cpp +++ b/firmware/application/capture_app.cpp @@ -31,6 +31,7 @@ CaptureAppView::CaptureAppView(NavigationView& nav) { &rssi, &channel, &field_frequency, + &field_rf_amp, &field_lna, &field_vga, &record_view, diff --git a/firmware/application/capture_app.hpp b/firmware/application/capture_app.hpp index 14d48434..985bdb8d 100644 --- a/firmware/application/capture_app.hpp +++ b/firmware/application/capture_app.hpp @@ -63,7 +63,11 @@ private: }; FrequencyField field_frequency { - { 5 * 8, 0 * 16 }, + { 3 * 8, 0 * 16 }, + }; + + RFAmpField field_rf_amp { + { 13 * 8, 0 * 16 } }; LNAGainField field_lna { diff --git a/firmware/application/tpms_app.cpp b/firmware/application/tpms_app.cpp index 5462db6e..aa03ba68 100644 --- a/firmware/application/tpms_app.cpp +++ b/firmware/application/tpms_app.cpp @@ -167,6 +167,7 @@ TPMSAppView::TPMSAppView(NavigationView&) { add_children({ { &rssi, &channel, + &field_rf_amp, &field_lna, &field_vga, &recent_entries_view, diff --git a/firmware/application/tpms_app.hpp b/firmware/application/tpms_app.hpp index 8396deb8..707208c7 100644 --- a/firmware/application/tpms_app.hpp +++ b/firmware/application/tpms_app.hpp @@ -129,6 +129,10 @@ private: { 21 * 8, 5, 6 * 8, 4 }, }; + RFAmpField field_rf_amp { + { 13 * 8, 0 * 16 } + }; + LNAGainField field_lna { { 15 * 8, 0 * 16 } };