Widget for displaying the live state of a magnetometer object.
More...
|
|
void | init () |
| | Initializes the UI layout and child widgets.
|
|
void | onUpdatedSlot () |
| | Slot called when the magnetometer data is updated.
|
|
|
QCustomLabel * | m_compass_label = nullptr |
| | Label displaying the current compass heading.
|
|
Button * | m_enable_button = nullptr |
| | Button to enable or disable the magnetometer.
|
|
QCustomLineEdit * | m_grid_compass_offset = nullptr |
| | Line edit for the grid-to-compass offset angle.
|
|
ProgressWidget * | m_intensity = nullptr |
| | Progress widget showing magnetic field intensity.
|
|
OrientationSensor * | m_sensor = nullptr |
| | The orientation sensor providing magnetometer data.
|
|
|
static std::function< void(PopupInfo info, OrientationSensor *sensor)> | s_magnetic_calibration_function |
| | Global callback for magnetic calibration requests.
|
Widget for displaying the live state of a magnetometer object.
Definition at line 17 of file MagnetometerWidget.h.
◆ MagnetometerWidget()
| MagnetometerWidget::MagnetometerWidget |
( |
QWidget * | parent = nullptr | ) |
|
◆ SetMagneticCalibrationCallback()
| void MagnetometerWidget::SetMagneticCalibrationCallback |
( |
const std::function< void(PopupInfo info, OrientationSensor *sensor)> & | function | ) |
|
|
static |
Sets the global callback invoked when magnetic calibration is requested.
- Parameters
-
◆ setSensor()
Sets the orientation sensor whose magnetometer data is displayed.
- Parameters
-
The documentation for this class was generated from the following file: