Skip to content

PRN Generating

james edited this page May 20, 2022 · 3 revisions

PRN generating code

prnGen.py

Explanation

This program generates Gold code as a pseudo random number (PRN) to make sure different chipsats with different PRNs don't interfere with each other. These PRNs could be generated by the Maximum_length_sequence. Such as the two "mseq" in the generating code above.

Specifically, PRN is the exclusive or of mseq1 and rolling shift of mseq2. There are three PRNs currently used by the ground station and firmware, corresponding to bit 0, bit 1, and preamble respectively.

The PRN generating code outputs PRNs in hex format, with or without the "0x" prefix.

Clone this wiki locally