Streaming ASCII record decoder that converts Polhemus Fastrak / FastSCAN bytes into UTILSLIB::FastrakSample values. More...
#include "fastrak_parser.h"
Go to the source code of this file.
Streaming ASCII record decoder that converts Polhemus Fastrak / FastSCAN bytes into UTILSLIB::FastrakSample values.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Bytes are accumulated in an internal buffer; complete CR/LF terminated records are tokenised on demand by nextSample. Token-count heuristics auto-detect the seven- field Euler record (used by FastSCAN-firmware devices) and the eight-field quaternion record (Fastrak with the O,7 output command active), so the same parser drives both generations of hardware. Positions are normalised to SI metres on the fly so downstream coregistration code never needs to know which physical units the device reports.
Definition in file fastrak_parser.cpp.