1 from .utils.widgets
import MicrostrainWidget, MicrostrainPlugin
2 from .utils.subscribers
import RTKMonitor, RTKMonitorV1
4 _WIDGET_NAME =
'RTKStatus' 10 super(RTKStatusWidget, self).
__init__(node, _WIDGET_NAME)
18 self.rtk_not_available_label.hide()
23 self.rtk_widget.hide()
24 self.rtk_not_available_label.setText(
'RTK status only available for GQ7 devices. Not available for device %s' % self.
_device_report_monitor.model_name_string)
25 self.rtk_not_available_label.show()
28 self.rtk_not_available_label.hide()
29 self.rtk_widget.show()
34 self.rtk_v1_widget.show()
35 self.rtk_v2_widget.hide()
40 self.rtk_v2_widget.show()
41 self.rtk_v1_widget.hide()
48 self.rtk_status_flags_controller_status_label.setText(self.
_rtk_status_monitor_v1.controller_status_string)
61 self.rtk_status_flags_modem_state_label.setText(self.
_rtk_status_monitor.modem_state_string)
62 self.rtk_status_flags_connection_type_label.setText(self.
_rtk_status_monitor.connection_type_string)
64 self.rtk_status_flags_tower_change_indicator_label.setText(self.
_rtk_status_monitor.tower_change_indicator_string)
65 self.rtk_status_flags_nmea_timeout_label.setText(self.
_rtk_status_monitor.nmea_timeout_string)
66 self.rtk_status_flags_server_timeout_label.setText(self.
_rtk_status_monitor.server_timeout_string)
67 self.rtk_status_flags_rtcm_timeout_label.setText(self.
_rtk_status_monitor.rtcm_timeout_string)
68 self.rtk_status_flags_out_of_range_label.setText(self.
_rtk_status_monitor.out_of_range_string)
69 self.rtk_status_flags_corrections_unavailable_label.setText(self.
_rtk_status_monitor.corrections_unavailable_string)
79 self.rtk_corrections_received_gps_label.setText(rtk_monitor.gps_received_string)
80 self.rtk_corrections_received_glonass_label.setText(rtk_monitor.glonass_received_string)
81 self.rtk_corrections_received_galileo_label.setText(rtk_monitor.galileo_received_string)
82 self.rtk_corrections_received_beidou_label.setText(rtk_monitor.beidou_received_string)
85 self.rtk_led_icon_label.setText(rtk_monitor.rtk_led_string)
88 self.rtk_raw_status_flag_label.setText(rtk_monitor.raw_status_flags_string)
89 self.rtk_status_flags_signal_quality_label.setText(rtk_monitor.signal_quality_string)
95 super(RTKStatusPlugin, self).
__init__(context, _WIDGET_NAME, RTKStatusWidget)
def __init__(self, context)