Formatted code (#1007)

* Updated style

* Updated files

* fixed new line

* Updated spacing

* File fix WIP

* Updated to clang 13

* updated comment style

* Removed old comment code
This commit is contained in:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -26,40 +26,40 @@
#include "event_m4.hpp"
TPMSProcessor::TPMSProcessor() {
decim_0.configure(taps_200k_decim_0.taps, 33554432);
decim_1.configure(taps_200k_decim_1.taps, 131072);
decim_0.configure(taps_200k_decim_0.taps, 33554432);
decim_1.configure(taps_200k_decim_1.taps, 131072);
}
void TPMSProcessor::execute(const buffer_c8_t& buffer) {
/* 2.4576MHz, 2048 samples */
/* 2.4576MHz, 2048 samples */
const auto decim_0_out = decim_0.execute(buffer, dst_buffer);
const auto decimator_out = decim_1.execute(decim_0_out, dst_buffer);
const auto decim_0_out = decim_0.execute(buffer, dst_buffer);
const auto decimator_out = decim_1.execute(decim_0_out, dst_buffer);
/* 307.2kHz, 256 samples */
feed_channel_stats(decimator_out);
/* 307.2kHz, 256 samples */
feed_channel_stats(decimator_out);
for(size_t i=0; i<decimator_out.count; i++) {
if( mf_38k4_1t_19k2.execute_once(decimator_out.p[i]) ) {
clock_recovery_fsk_19k2(mf_38k4_1t_19k2.get_output());
}
}
for (size_t i = 0; i < decimator_out.count; i++) {
if (mf_38k4_1t_19k2.execute_once(decimator_out.p[i])) {
clock_recovery_fsk_19k2(mf_38k4_1t_19k2.get_output());
}
}
for(size_t i=0; i<decimator_out.count; i+=channel_decimation) {
const auto sliced = ook_slicer_5sps(decimator_out.p[i]);
slicer_history = (slicer_history << 1) | sliced;
for (size_t i = 0; i < decimator_out.count; i += channel_decimation) {
const auto sliced = ook_slicer_5sps(decimator_out.p[i]);
slicer_history = (slicer_history << 1) | sliced;
clock_recovery_ook_8k192(slicer_history, [this](const bool symbol) {
this->packet_builder_ook_8k192_schrader.execute(symbol);
});
clock_recovery_ook_8k4(slicer_history, [this](const bool symbol) {
this->packet_builder_ook_8k4_schrader.execute(symbol);
});
}
clock_recovery_ook_8k192(slicer_history, [this](const bool symbol) {
this->packet_builder_ook_8k192_schrader.execute(symbol);
});
clock_recovery_ook_8k4(slicer_history, [this](const bool symbol) {
this->packet_builder_ook_8k4_schrader.execute(symbol);
});
}
}
int main() {
EventDispatcher event_dispatcher { std::make_unique<TPMSProcessor>() };
event_dispatcher.run();
return 0;
EventDispatcher event_dispatcher{std::make_unique<TPMSProcessor>()};
event_dispatcher.run();
return 0;
}