Configure radio in AIS, ERT, TPMS apps.

This commit is contained in:
Jared Boone 2016-01-25 11:22:39 -08:00
parent 15800eea33
commit 8b0e6e65c8
3 changed files with 18 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}