diff --git a/include/encoder/ModemController.h b/include/encoder/ModemController.h index 259468e..acdfb01 100644 --- a/include/encoder/ModemController.h +++ b/include/encoder/ModemController.h @@ -75,14 +75,10 @@ public: std::vector mgd_decoded_data = mgd_decoder.mgdDecode(processed_data); - // Step 4: Symbol Formation. This function injects the sync preamble symbols. + // Step 4: Symbol Formation. This function injects the sync preamble symbols. Scrambling is built-in. std::vector symbol_stream = symbol_formation.formSymbols(mgd_decoded_data); - // Step 5: Scrambling - std::vector scrambled_data = scrambler.scrambleData(symbol_stream); - - // Step 6: PSK Modulation. This is the final baseband output of the class. - std::vector modulated_signal = modulator.modulate(scrambled_data); + std::vector modulated_signal = modulator.modulate(symbol_stream); // Step 7: Apply Sqrt Half Cosine Filter with a rolloff factor of 0.3 (30%) std::vector filtered_signal = SqrtHalfCosine(modulated_signal, 0.3);