Dialog which allows user to set or calculate the magnetic declination.
More...
|
|
void | updateCalculation () |
| | Recalculates the magnetic declination from current inputs.
|
| void | updateMagneticReference (const Angle< fltp08 > &angle) |
| | Updates the stored magnetic reference angle.
|
|
void | updateMagnetReadingButton () |
| | Updates the magnetometer reading button state based on sensor availability.
|
|
|
Button * | m_finish_button |
| | Button to confirm and apply the declination value.
|
|
QCustomLineEdit * | m_line_edit |
| | Line edit for entering the declination angle manually.
|
|
QCustomLineEdit * | m_magnetic_angle |
| | Line edit displaying the measured magnetic angle.
|
|
QGroupBox * | m_magnetic_reading_group |
| | Group box containing magnetic reading controls.
|
|
QGroupBox * | m_magnetic_value_group |
| | Group box containing magnetic value entry controls.
|
|
Button * | m_magnetometer_button |
| | Button to access magnetometer calibration.
|
|
MagnetometerWidget * | m_magnetometer_widget = nullptr |
| | Widget showing live magnetometer state.
|
|
Button * | m_measure_button |
| | Button to take a magnetic reference measurement.
|
|
OrientationOperationsWidget * | m_ops_widget |
| | Widget for orientation-related operations.
|
|
Angle< fltp08 > | m_reference_angle = Constant<Angle<fltp08>>::Invalid |
| | The known reference angle for declination calculation.
|
|
|
static QPointer< OrientationSensor > | s_magnetic_reading_callback |
| | Shared sensor used for magnetic readings across instances.
|
Dialog which allows user to set or calculate the magnetic declination.
https://en.wikipedia.org/wiki/Magnetic_declination
Definition at line 23 of file MagneticDeclinationDialog.h.
◆ MagneticDeclinationDialog()
| MagneticDeclinationDialog::MagneticDeclinationDialog |
( |
DesignObjectLookup * | lookup, |
|
|
QWidget * | parent = nullptr ) |
◆ RegisterDialog()
Registers this dialog type with the application for the given lookup.
- Parameters
-
◆ SetSensor()
Sets the orientation sensor used for magnetic readings.
- Parameters
-
◆ showMagnetometerOptionsPopup()
| void MagneticDeclinationDialog::showMagnetometerOptionsPopup |
( |
PopupInfo | info | ) |
|
Displays a popup with magnetometer options.
- Parameters
-
| [in] | info | The PopupInfo controlling popup appearance and behavior. |
◆ updateMagneticReference()
| void MagneticDeclinationDialog::updateMagneticReference |
( |
const Angle< fltp08 > & | angle | ) |
|
|
protected |
Updates the stored magnetic reference angle.
- Parameters
-
| [in] | angle | The new magnetic reference angle. |
The documentation for this class was generated from the following file: