albertaloop / T_SWE_2022_2023

Software for AlbertaLoop's first-generation pod.
MIT License
3 stars 0 forks source link

Command Transmitter #25

Closed Iyury1 closed 1 year ago

Iyury1 commented 1 year ago

Summary

Write the functionality of the command transmitter for sending commands issued by the UI over the UDP "command socket" held by the UDP module.

Pseudocode for the command transmitter is located in the Network Comms Design Plan document

The code should be written into the "execute()" function of the command class. The execute() method will call functions belonging to UDPModule.commandTransmitter.

See the updated UML class diagram for more information.

For testing, you will need to make a new mock_pod.py script that can receive the sent commands and send back an appropriate acknowledgement message. Do not delete the old mock_pod.py script. Either we can have different mock_pod scripts for each type of test, or we can add multiple tests to the same mock_pod.py file and specify the type of test to run through command line arguments.