I'm trying to write a script to control a worker drone. This drone will interact with plants on specific coordinates that are being fed to him by mainframe via wireless modem. I've planned to have those commands:
1. Add/remove new coordinates.
2. Print out all registered coordinates.
3. Finish the job, return to charger and wait for further commands.
4. ...
The initial solution included using two threads: a worker thread that executes requested and routine actions and a controller thread that listens for new modem messages, updates drone status and generates responses for the mai