From 8b0e6e65c85122226e6fea42687d46e6fc9b1469 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 25 Jan 2016 11:22:39 -0800 Subject: [PATCH] Configure radio in AIS, ERT, TPMS apps. --- firmware/application/ais_app.cpp | 6 ++++++ firmware/application/ert_app.cpp | 6 ++++++ firmware/application/tpms_app.cpp | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/firmware/application/ais_app.cpp b/firmware/application/ais_app.cpp index 6c1f2e40..4c134ca0 100644 --- a/firmware/application/ais_app.cpp +++ b/firmware/application/ais_app.cpp @@ -321,6 +321,11 @@ AISAppView::AISAppView(NavigationView&) { .decimation_factor = 1, }); receiver_model.set_baseband_bandwidth(1750000); + receiver_model.set_rf_amp(false); + receiver_model.set_lna(32); + receiver_model.set_vga(32); + receiver_model.set_tuning_frequency(162025000); + receiver_model.enable(); recent_entries_view.on_select = [this](const AISRecentEntry& entry) { this->on_show_detail(entry); @@ -331,6 +336,7 @@ AISAppView::AISAppView(NavigationView&) { } AISAppView::~AISAppView() { + receiver_model.disable(); EventDispatcher::message_map().unregister_handler(Message::ID::AISPacket); } diff --git a/firmware/application/ert_app.cpp b/firmware/application/ert_app.cpp index 203fa98f..ab4c4ba8 100644 --- a/firmware/application/ert_app.cpp +++ b/firmware/application/ert_app.cpp @@ -112,9 +112,15 @@ ERTAppView::ERTAppView(NavigationView&) { .decimation_factor = 1, }); receiver_model.set_baseband_bandwidth(2500000); + receiver_model.set_rf_amp(false); + receiver_model.set_lna(32); + receiver_model.set_vga(32); + receiver_model.set_tuning_frequency(911600000); + receiver_model.enable(); } ERTAppView::~ERTAppView() { + receiver_model.disable(); EventDispatcher::message_map().unregister_handler(Message::ID::ERTPacket); } diff --git a/firmware/application/tpms_app.cpp b/firmware/application/tpms_app.cpp index 74cf4c13..6073e051 100644 --- a/firmware/application/tpms_app.cpp +++ b/firmware/application/tpms_app.cpp @@ -218,9 +218,15 @@ TPMSAppView::TPMSAppView(NavigationView&) { .decimation_factor = 1, }); receiver_model.set_baseband_bandwidth(1750000); + receiver_model.set_rf_amp(false); + receiver_model.set_lna(32); + receiver_model.set_vga(32); + receiver_model.set_tuning_frequency(315000000); + receiver_model.enable(); } TPMSAppView::~TPMSAppView() { + receiver_model.disable(); EventDispatcher::message_map().unregister_handler(Message::ID::TPMSPacket); }