utat-ss / test-software

Testing software that does not run on AVR microcontrollers
MIT License
0 stars 0 forks source link

Add setting to randomly drop packets in transceiver simulator #8

Closed brunofalmeida closed 5 years ago

brunofalmeida commented 5 years ago

Probably a flag to enable it and some other parameter to change the probability (maybe different for RX and TX?)

brunofalmeida commented 5 years ago

Should add new command-line options --uplink-drop (simulating ground to satellite, i.e. laptop to OBC) and --downlink-drop (simulating satellite to ground, i.e. OBC to laptop). These specify the fraction of the time to drop packets in each direction (both arguments should default to 0 if not specified). For example, you could specify --uplink-drop 0.25 to drop 25% of the uplink packets. The simulator should clearly print a message to indicate when a packet has been dropped and in which direction.