mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-10 05:30:42 -05:00
parent
c3bb9c0a16
commit
5e9d92d65c
4 changed files with 8 additions and 8 deletions
|
|
@ -47,10 +47,10 @@ void WeatherProcessor::execute(const buffer_c8_t& buffer) {
|
|||
tm += mag;
|
||||
if (meashl == currentHiLow && currentDuration < 10'000'000) // allow pass 'end' signal
|
||||
{
|
||||
if (currentDuration < UINT32_MAX) currentDuration += usperTick;
|
||||
if (currentDuration < UINT32_MAX) currentDuration += nsPerDecSamp;
|
||||
} else { // called on change, so send the last duration and dir.
|
||||
protoList.feed(currentHiLow, currentDuration / 1000);
|
||||
currentDuration = usperTick;
|
||||
currentDuration = nsPerDecSamp;
|
||||
currentHiLow = meashl;
|
||||
}
|
||||
}
|
||||
|
|
@ -71,8 +71,9 @@ void WeatherProcessor::on_message(const Message* const message) {
|
|||
}
|
||||
|
||||
void WeatherProcessor::configure(const WeatherRxConfigureMessage& message) {
|
||||
constexpr size_t decim_0_output_fs = baseband_fs / decim_0.decimation_factor;
|
||||
constexpr size_t decim_1_output_fs = decim_0_output_fs / decim_1.decimation_factor;
|
||||
// unused:
|
||||
// constexpr size_t decim_0_output_fs = baseband_fs / decim_0.decimation_factor;
|
||||
// constexpr size_t decim_1_output_fs = decim_0_output_fs / decim_1.decimation_factor;
|
||||
|
||||
decim_0.configure(taps_200k_wfm_decim_0.taps);
|
||||
decim_1.configure(taps_200k_wfm_decim_1.taps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue