don't double scramble...

This commit is contained in:
RecklessAndFeckless 2024-10-09 12:40:12 -04:00
parent 445d9a6076
commit 172a731ea5

View File

@ -75,14 +75,10 @@ public:
std::vector<uint8_t> mgd_decoded_data = mgd_decoder.mgdDecode(processed_data); std::vector<uint8_t> 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<uint8_t> symbol_stream = symbol_formation.formSymbols(mgd_decoded_data); std::vector<uint8_t> symbol_stream = symbol_formation.formSymbols(mgd_decoded_data);
// Step 5: Scrambling std::vector<int16_t> modulated_signal = modulator.modulate(symbol_stream);
std::vector<uint8_t> scrambled_data = scrambler.scrambleData(symbol_stream);
// Step 6: PSK Modulation. This is the final baseband output of the class.
std::vector<int16_t> modulated_signal = modulator.modulate(scrambled_data);
// Step 7: Apply Sqrt Half Cosine Filter with a rolloff factor of 0.3 (30%) // Step 7: Apply Sqrt Half Cosine Filter with a rolloff factor of 0.3 (30%)
std::vector<int16_t> filtered_signal = SqrtHalfCosine(modulated_signal, 0.3); std::vector<int16_t> filtered_signal = SqrtHalfCosine(modulated_signal, 0.3);