mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 15:29:37 -05:00
Revert "Revert "“Antenna_DC_Bias_missing_in_AIS_and_RADIOSONDE”""
This reverts commit 4de25a2039
.
This commit is contained in:
parent
4de25a2039
commit
b84820963b
@ -308,7 +308,12 @@ AISAppView::AISAppView(NavigationView& nav) : nav_ { nav } {
|
|||||||
|
|
||||||
target_frequency_ = initial_target_frequency;
|
target_frequency_ = initial_target_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({ // this can be removed, previous version,no DC-bias control.
|
||||||
tuning_frequency(),
|
tuning_frequency(),
|
||||||
sampling_rate,
|
sampling_rate,
|
||||||
baseband_bandwidth,
|
baseband_bandwidth,
|
||||||
@ -316,7 +321,7 @@ AISAppView::AISAppView(NavigationView& nav) : nav_ { nav } {
|
|||||||
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_channel.on_change = [this](size_t, OptionsField::value_t v) {
|
options_channel.on_change = [this](size_t, OptionsField::value_t v) {
|
||||||
this->on_frequency_changed(v);
|
this->on_frequency_changed(v);
|
||||||
@ -337,7 +342,8 @@ AISAppView::AISAppView(NavigationView& nav) : nav_ { nav } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AISAppView::~AISAppView() {
|
AISAppView::~AISAppView() {
|
||||||
radio::disable();
|
/* radio::disable(); */
|
||||||
|
receiver_model.disable(); // to switch off all, including DC bias.
|
||||||
|
|
||||||
baseband::shutdown();
|
baseband::shutdown();
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,12 @@ SondeView::SondeView(NavigationView& nav) {
|
|||||||
use_crc = v;
|
use_crc = v;
|
||||||
};
|
};
|
||||||
|
|
||||||
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({ // this can be removed, previous version, no DC-bias ant. control.
|
||||||
tuning_frequency(),
|
tuning_frequency(),
|
||||||
sampling_rate,
|
sampling_rate,
|
||||||
baseband_bandwidth,
|
baseband_bandwidth,
|
||||||
@ -108,7 +113,7 @@ SondeView::SondeView(NavigationView& nav) {
|
|||||||
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()),
|
||||||
});
|
}); */
|
||||||
|
|
||||||
|
|
||||||
// QR code with geo URI
|
// QR code with geo URI
|
||||||
@ -153,7 +158,8 @@ SondeView::SondeView(NavigationView& nav) {
|
|||||||
|
|
||||||
SondeView::~SondeView() {
|
SondeView::~SondeView() {
|
||||||
baseband::set_pitch_rssi(0, false);
|
baseband::set_pitch_rssi(0, false);
|
||||||
radio::disable();
|
/* radio::disable(); */
|
||||||
|
receiver_model.disable(); // to switch off all, including DC bias.
|
||||||
baseband::shutdown();
|
baseband::shutdown();
|
||||||
audio::output::stop();
|
audio::output::stop();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user