Document the capture and scheduler state machines in SCXML
The capture and scheduler state machines should be formally documented in the form of SCXML.
An SCXML formulation will allow editing in Qt Creator, and Qt itself has an SCXML module, which allows the possibility of shifting the bulk of the actual mechanics of the state machine formalism to Qt.