A widget that allows the user to interact with an IMUCalibrator object and perform an IMU calibration.
More...
|
| | CalibratorWidget (IMUCalibrator *calibrator, QWidget *parent=nullptr) |
| | Constructs a CalibratorWidget with an associated IMU calibrator.
|
| | CalibratorWidget (QWidget *parent=nullptr) |
| | Constructs a CalibratorWidget without an associated calibrator.
|
|
void | cancelCalibration () |
| | Cancels the currently running calibration.
|
|
void | saveCalibration () |
| | Saves the calibration data to the default location.
|
|
void | saveToLocation () |
| | Prompts the user to choose a file location and saves the calibration data there.
|
| void | setCalibrator (IMUCalibrator *calibrator) |
| | Sets the IMU calibrator for this widget to control.
|
| void | showButtonOptions (bool show_buttons) |
| | Shows or hides the start, save, and save-as buttons.
|
|
void | startCalibration () |
| | Starts the calibration process.
|
|
|
void | init () |
| | Initializes the widget layout and child widgets.
|
|
void | onUpdatedSlot () |
| | Slot called when the calibrator reports updated progress or state.
|
|
|
IMUCalibrator * | m_calibrator |
| | The IMU calibrator being controlled.
|
|
FileChooserDialog * | m_file_dialog = nullptr |
| | File chooser dialog for save-as operations.
|
|
bool | m_is_calibrating = false |
| | Whether a calibration is currently in progress.
|
|
ProgressWidget * | m_progress_widget |
| | Widget displaying calibration progress.
|
|
Button * | m_save_as_button = nullptr |
| | Button to save calibration data to a chosen location.
|
|
Button * | m_save_button = nullptr |
| | Button to save calibration data.
|
|
Button * | m_start_button = nullptr |
| | Button to start or cancel calibration.
|
A widget that allows the user to interact with an IMUCalibrator object and perform an IMU calibration.
Definition at line 16 of file CalibratorWidget.h.
◆ CalibratorWidget() [1/2]
| CalibratorWidget::CalibratorWidget |
( |
QWidget * | parent = nullptr | ) |
|
Constructs a CalibratorWidget without an associated calibrator.
- Parameters
-
| [in] | parent | The parent widget. |
◆ CalibratorWidget() [2/2]
| CalibratorWidget::CalibratorWidget |
( |
IMUCalibrator * | calibrator, |
|
|
QWidget * | parent = nullptr ) |
Constructs a CalibratorWidget with an associated IMU calibrator.
- Parameters
-
| [in] | calibrator | The IMU calibrator to interact with. |
| [in] | parent | The parent widget. |
◆ CalibrationTemplateFormat()
| FileFormat CalibratorWidget::CalibrationTemplateFormat |
( |
| ) |
|
|
static |
Returns the file format used for calibration template files.
- Returns
- The calibration template FileFormat.
◆ setCalibrator()
| void CalibratorWidget::setCalibrator |
( |
IMUCalibrator * | calibrator | ) |
|
Sets the IMU calibrator for this widget to control.
- Parameters
-
| [in] | calibrator | The IMU calibrator. |
◆ showButtonOptions()
| void CalibratorWidget::showButtonOptions |
( |
bool | show_buttons | ) |
|
Shows or hides the start, save, and save-as buttons.
- Parameters
-
| [in] | show_buttons | Whether to display the button options. |
The documentation for this class was generated from the following file: