Transponder apps: Use gains from receiver model.

This commit is contained in:
Jared Boone 2016-07-25 16:07:22 -07:00
parent c573f3b57d
commit 5e362534c3
3 changed files with 13 additions and 3 deletions

View File

@ -25,6 +25,9 @@
#include "baseband_api.hpp"
#include "portapack.hpp"
using namespace portapack;
#include <algorithm>
namespace ais {
@ -309,7 +312,9 @@ AISAppView::AISAppView(NavigationView&) {
sampling_rate,
baseband_bandwidth,
rf::Direction::Receive,
false, 32, 32,
receiver_model.rf_amp(),
static_cast<int8_t>(receiver_model.lna()),
static_cast<int8_t>(receiver_model.vga()),
1,
});

View File

@ -23,6 +23,9 @@
#include "baseband_api.hpp"
#include "portapack.hpp"
using namespace portapack;
#include "manchester.hpp"
#include "crc.hpp"
@ -135,7 +138,9 @@ ERTAppView::ERTAppView(NavigationView&) {
sampling_rate,
baseband_bandwidth,
rf::Direction::Receive,
false, 32, 32,
receiver_model.rf_amp(),
static_cast<int8_t>(receiver_model.lna()),
static_cast<int8_t>(receiver_model.vga()),
1,
});

View File

@ -181,7 +181,7 @@ TPMSAppView::TPMSAppView(NavigationView&) {
sampling_rate,
baseband_bandwidth,
rf::Direction::Receive,
false,
receiver_model.rf_amp(),
static_cast<int8_t>(receiver_model.lna()),
static_cast<int8_t>(receiver_model.vga()),
1,