Poseidon
Poseidon copied to clipboard
Continual update loop is needed in C++ code
Summary
For the sub to calculate its current pose, it needs to continually pull data from the gyroscope, accelerator, compass, etc. Currently the CommandDispatcher uses getLine() to receive commands from the JavaScript code. The getLine() function blocks the current thread until a full line of data is available for processing. Another thread or a non-blocking version of the CommandDispatcher's loop is needed.
Acceptance Criteria
- [ ] Discuss options, and decided on solution.
- [ ] Implement new loop structure.