NDEVR
API Documentation
MadgwickSimulatorCharts

Manages chart visualizations for Madgwick sensor fusion simulator data, displaying accelerometer, gyroscope, and absolute orientation over time. More...

Collaboration diagram for MadgwickSimulatorCharts:
[legend]

Public Member Functions

 MadgwickSimulatorCharts (QTModelManager *manager)
 Constructs MadgwickSimulatorCharts with a model manager.
void initCharts (Vector< 3, fltp08 > accel_bias, Vector< 3, fltp08 > gyro_bias)
 Initializes chart models with the given sensor biases.
void reset ()
 Resets all chart data to initial state.
void setSimulator (MadgwickSimulator *simulator)
 Sets the simulator whose data will be charted.

Protected Member Functions

void onTimerUpdatedSlot ()
 Slot called on timer update to refresh chart data.

Protected Attributes

Vector< 3, NDEVRChartModel * > m_abs_chart_models = Vector<3, NDEVRChartModel*>(nullptr)
 Chart models for absolute orientation X, Y, Z.
Vector< 3, NDEVRChartModel * > m_acc_chart_models = Vector<3, NDEVRChartModel*>(nullptr)
 Chart models for accelerometer X, Y, Z.
fltp08 m_chart_offset_time = 0.0
 Time offset for chart data alignment.
Vector< 3, NDEVRChartModel * > m_gyro_chart_models = Vector<3, NDEVRChartModel*>(nullptr)
 Chart models for gyroscope X, Y, Z.
QTModelManagerm_manager = nullptr
 The application model manager.
MadgwickSimulatorm_simulator = nullptr
 The active Madgwick simulator instance.
QTimer * m_update_timer = nullptr
 Timer for periodic chart updates.

Detailed Description

Manages chart visualizations for Madgwick sensor fusion simulator data, displaying accelerometer, gyroscope, and absolute orientation over time.


Definition at line 15 of file MadgwickSimulatorCharts.h.

Constructor & Destructor Documentation

◆ MadgwickSimulatorCharts()

MadgwickSimulatorCharts::MadgwickSimulatorCharts ( QTModelManager * manager)

Constructs MadgwickSimulatorCharts with a model manager.

Parameters
[in]managerThe model manager for chart data access.

Member Function Documentation

◆ initCharts()

void MadgwickSimulatorCharts::initCharts ( Vector< 3, fltp08 > accel_bias,
Vector< 3, fltp08 > gyro_bias )

Initializes chart models with the given sensor biases.

Parameters
[in]accel_biasThe accelerometer bias offset for each axis.
[in]gyro_biasThe gyroscope bias offset for each axis.

◆ setSimulator()

void MadgwickSimulatorCharts::setSimulator ( MadgwickSimulator * simulator)

Sets the simulator whose data will be charted.

Parameters
[in]simulatorThe MadgwickSimulator to read data from.

The documentation for this class was generated from the following file: