1 from .utils.widgets
import MicrostrainWidget, MicrostrainPlugin
2 from .utils.subscribers
import RTKMonitor
4 _WIDGET_NAME =
'RTKStatus'
10 super(RTKStatusWidget, self).
__init__(node, _WIDGET_NAME)
17 self.rtk_not_available_label.hide()
22 self.rtk_widget.hide()
23 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)
24 self.rtk_not_available_label.show()
27 self.rtk_not_available_label.hide()
28 self.rtk_widget.show()
35 self.rtk_status_flags_modem_state_label.setText(self.
_rtk_status_monitor.modem_state_string)
36 self.rtk_status_flags_connection_type_label.setText(self.
_rtk_status_monitor.connection_type_string)
38 self.rtk_status_flags_tower_change_indicator_label.setText(self.
_rtk_status_monitor.tower_change_indicator_string)
39 self.rtk_status_flags_nmea_timeout_label.setText(self.
_rtk_status_monitor.nmea_timeout_string)
40 self.rtk_status_flags_server_timeout_label.setText(self.
_rtk_status_monitor.server_timeout_string)
41 self.rtk_status_flags_rtcm_timeout_label.setText(self.
_rtk_status_monitor.rtcm_timeout_string)
42 self.rtk_status_flags_out_of_range_label.setText(self.
_rtk_status_monitor.out_of_range_string)
43 self.rtk_status_flags_corrections_unavailable_label.setText(self.
_rtk_status_monitor.corrections_unavailable_string)
54 self.rtk_corrections_received_gps_label.setText(rtk_monitor.gps_received_string)
55 self.rtk_corrections_received_glonass_label.setText(rtk_monitor.glonass_received_string)
56 self.rtk_corrections_received_galileo_label.setText(rtk_monitor.galileo_received_string)
57 self.rtk_corrections_received_beidou_label.setText(rtk_monitor.beidou_received_string)
60 self.rtk_led_icon_label.setText(rtk_monitor.rtk_led_string)
63 self.rtk_raw_status_flag_label.setText(rtk_monitor.raw_status_flags_string)
64 self.rtk_status_flags_signal_quality_label.setText(rtk_monitor.signal_quality_string)
70 super(RTKStatusPlugin, self).
__init__(context, _WIDGET_NAME, RTKStatusWidget)