Backend implementation for UTILSLIB::PolhemusConnection — mock sweep generator and live QSerialPort driver.
More...

Go to the source code of this file.
Backend implementation for UTILSLIB::PolhemusConnection — mock sweep generator and live QSerialPort driver.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The hardware backend opens the serial port with the documented Fastrak defaults (115 200 8N1, no flow control), issues the continuous-output start command on open() and the stop command on close(), then forwards every chunk of received bytes to FastrakParser. The mock backend fabricates a deterministic spiral over a 10 cm sphere on a QTimer tick so unit tests and demo apps still produce geometry without a tracker attached.
Definition in file polhemus_connection.cpp.