mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Addition_bias_DC_ERP_TPMS
This commit is contained in:
parent
823c69eb42
commit
961a4c4588
@ -113,8 +113,12 @@ ERTAppView::ERTAppView(NavigationView&) {
|
|||||||
field_rf_amp.set_value(app_settings.rx_amp);
|
field_rf_amp.set_value(app_settings.rx_amp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
receiver_model.set_tuning_frequency(initial_target_frequency);
|
||||||
|
receiver_model.set_sampling_rate(sampling_rate);
|
||||||
|
receiver_model.set_baseband_bandwidth(baseband_bandwidth);
|
||||||
|
receiver_model.enable(); // Before using radio::enable(), but not updating Ant.DC-Bias.
|
||||||
|
|
||||||
radio::enable({
|
/* radio::enable({
|
||||||
initial_target_frequency,
|
initial_target_frequency,
|
||||||
sampling_rate,
|
sampling_rate,
|
||||||
baseband_bandwidth,
|
baseband_bandwidth,
|
||||||
@ -122,7 +126,7 @@ ERTAppView::ERTAppView(NavigationView&) {
|
|||||||
receiver_model.rf_amp(),
|
receiver_model.rf_amp(),
|
||||||
static_cast<int8_t>(receiver_model.lna()),
|
static_cast<int8_t>(receiver_model.lna()),
|
||||||
static_cast<int8_t>(receiver_model.vga()),
|
static_cast<int8_t>(receiver_model.vga()),
|
||||||
});
|
}); */
|
||||||
|
|
||||||
logger = std::make_unique<ERTLogger>();
|
logger = std::make_unique<ERTLogger>();
|
||||||
if( logger ) {
|
if( logger ) {
|
||||||
|
@ -161,7 +161,12 @@ TPMSAppView::TPMSAppView(NavigationView&) {
|
|||||||
}
|
}
|
||||||
else options_band.set_by_value(receiver_model.tuning_frequency());
|
else options_band.set_by_value(receiver_model.tuning_frequency());
|
||||||
|
|
||||||
radio::enable({
|
receiver_model.set_tuning_frequency(tuning_frequency());
|
||||||
|
receiver_model.set_sampling_rate(sampling_rate);
|
||||||
|
receiver_model.set_baseband_bandwidth(baseband_bandwidth);
|
||||||
|
receiver_model.enable(); // Before using radio::enable(), but not updating Ant.DC-Bias.
|
||||||
|
|
||||||
|
/* radio::enable({
|
||||||
tuning_frequency(),
|
tuning_frequency(),
|
||||||
sampling_rate,
|
sampling_rate,
|
||||||
baseband_bandwidth,
|
baseband_bandwidth,
|
||||||
@ -169,7 +174,7 @@ TPMSAppView::TPMSAppView(NavigationView&) {
|
|||||||
receiver_model.rf_amp(),
|
receiver_model.rf_amp(),
|
||||||
static_cast<int8_t>(receiver_model.lna()),
|
static_cast<int8_t>(receiver_model.lna()),
|
||||||
static_cast<int8_t>(receiver_model.vga()),
|
static_cast<int8_t>(receiver_model.vga()),
|
||||||
});
|
}); */
|
||||||
|
|
||||||
options_band.on_change = [this](size_t, OptionsField::value_t v) {
|
options_band.on_change = [this](size_t, OptionsField::value_t v) {
|
||||||
this->on_band_changed(v);
|
this->on_band_changed(v);
|
||||||
|
Loading…
Reference in New Issue
Block a user