A composite GPS widget that combines a settings button, status display, and take-reading functionality for collecting GNSS position and orientation data.
More...
|
|
void | init () |
| | Initializes the widget layout and sub-widgets.
|
|
void | updatedSlot () |
| | Slot called when the sensor data is updated.
|
|
void | updateReadingSlot () |
| | Slot called to update the take-reading accumulation.
|
|
|
UUID | m_active_sensor = Constant<UUID>::Invalid |
| | The UUID of the active sensor.
|
|
GNSSOpenSettingsButton * | m_gps_settings_button = nullptr |
| | Button to open GPS settings.
|
|
GPSSensor * | m_sensor = nullptr |
| | The GPS sensor instance.
|
|
bool | m_take_location_reading = true |
| | Whether location readings are enabled.
|
|
bool | m_take_orientation_reading = false |
| | Whether orientation readings are enabled.
|
|
Button * | m_take_reading_button = nullptr |
| | Button to start/stop taking a reading.
|
|
TakeReadingData | m_take_reading_data |
| | Current take-reading accumulation state.
|
A composite GPS widget that combines a settings button, status display, and take-reading functionality for collecting GNSS position and orientation data.
Definition at line 151 of file GPSWidget.h.
◆ GPSWidget() [1/3]
| GPSWidget::GPSWidget |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Constructs the GPS widget with no sensor.
- Parameters
-
| [in] | parent | Optional parent widget. |
◆ GPSWidget() [2/3]
| GPSWidget::GPSWidget |
( |
const UUID & | active_sensor, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Constructs the GPS widget for a sensor identified by UUID.
- Parameters
-
| [in] | active_sensor | The sensor UUID. |
| [in] | parent | Optional parent widget. |
◆ GPSWidget() [3/3]
| GPSWidget::GPSWidget |
( |
GPSSensor * | sensor, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Constructs the GPS widget for a specific GPS sensor.
- Parameters
-
| [in] | sensor | The GPS sensor. |
| [in] | parent | Optional parent widget. |
References sensor().
◆ currentGPS()
| GPSPoint GPSWidget::currentGPS |
( |
| ) |
const |
Returns the current GPS point data.
- Returns
- The current GPS point.
◆ currentLocation()
Returns the current 3D location from the GPS sensor.
- Returns
- The current location vertex.
◆ qualitySettings()
Returns the current quality settings for readings.
- Returns
- The GNSS quality settings.
◆ readingTakenSignal()
Emitted when a reading has been taken with the accumulated data.
- Parameters
-
| [in] | data | The take-reading data. |
◆ sensor()
◆ setSensor() [1/2]
| void GPSWidget::setSensor |
( |
const UUID & | active_sensor | ) |
|
Sets the sensor by UUID.
- Parameters
-
| [in] | active_sensor | The sensor UUID. |
◆ setSensor() [2/2]
| void GPSWidget::setSensor |
( |
GPSSensor * | sensor | ) |
|
Sets the GPS sensor to use.
- Parameters
-
References sensor().
◆ setTakeLocationReading()
| void GPSWidget::setTakeLocationReading |
( |
bool | value | ) |
|
Sets whether to take location readings.
- Parameters
-
| [in] | value | True to enable location readings. |
◆ setTakeOrientationReading()
| void GPSWidget::setTakeOrientationReading |
( |
bool | value | ) |
|
Sets whether to take orientation readings.
- Parameters
-
| [in] | value | True to enable orientation readings. |
The documentation for this class was generated from the following file: