v2.0.0
Loading...
Searching...
No Matches
polhemus_connection.cpp File Reference

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

#include "polhemus_connection.h"
#include <QtMath>
Include dependency graph for polhemus_connection.cpp:

Go to the source code of this file.

Detailed Description

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

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.1
Date
May 2026

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.