@file stream_task.py
@brief Task to stream data over Bluetooth if enabled.
This module defines the StreamTask class, which implements a finite state machine (FSM) to stream data in CSV format over a Bluetooth UART interface. The task monitors a control flag to determine when to start and stop streaming, and it sends formatted data lines containing time, encoder positions, and velocities when new motor data is available.
Previously, data was moved from shares into queues by data_task.py. Now, stream_task.py reads and streams data directly from shares in real time to the PC interface.