API Documentation
Loading...
Searching...
No Matches
MagnetometerWidget Class Reference

Widget for displaying the live state of a magnetometer object. More...

#include <MagnetometerWidget.h>

Inheritance diagram for MagnetometerWidget:
[legend]
Collaboration diagram for MagnetometerWidget:
[legend]

Public Member Functions

 MagnetometerWidget (QWidget *parent=nullptr)
 
void setSensor (OrientationSensor *sensor)
 

Static Public Member Functions

static void SetMagneticCalibrationCallback (const std::function< void(PopupInfo info, OrientationSensor *sensor)> &function)
 

Protected Slots

void onUpdatedSlot ()
 

Protected Member Functions

void init ()
 

Protected Attributes

Buttonm_enable_button = nullptr
 
QCustomLabelm_compass_label = nullptr
 
QCustomLineEditm_grid_compass_offset = nullptr
 
OrientationSensorm_sensor = nullptr
 
ProgressWidgetm_intensity = nullptr
 

Static Protected Attributes

static std::function< void(PopupInfo info, OrientationSensor *sensor)> s_magnetic_calibration_function
 

Detailed Description

Widget for displaying the live state of a magnetometer object.


Class: MagneticDeclinationDialog

\ingroup Hardware Magnetometer Widget

Constructor & Destructor Documentation

◆ MagnetometerWidget()

MagnetometerWidget ( QWidget * parent = nullptr)

Member Function Documentation

◆ init()

void init ( )
protected

◆ onUpdatedSlot

void onUpdatedSlot ( )
protectedslot

◆ SetMagneticCalibrationCallback()

void SetMagneticCalibrationCallback ( const std::function< void(PopupInfo info, OrientationSensor *sensor)> & function)
static

◆ setSensor()

void setSensor ( OrientationSensor * sensor)

Member Data Documentation

◆ m_compass_label

QCustomLabel* m_compass_label = nullptr
protected

◆ m_enable_button

Button* m_enable_button = nullptr
protected

◆ m_grid_compass_offset

QCustomLineEdit* m_grid_compass_offset = nullptr
protected

◆ m_intensity

ProgressWidget* m_intensity = nullptr
protected

◆ m_sensor

OrientationSensor* m_sensor = nullptr
protected

◆ s_magnetic_calibration_function

std::function< void(PopupInfo info, OrientationSensor *sensor)> s_magnetic_calibration_function
staticprotected

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