1 from .utils.widgets
import MicrostrainWidget, MicrostrainPlugin
2 from .utils.subscribers
import ImuMonitor, MagMonitor
4 _WIDGET_NAME =
'SensorData'
10 super(SensorDataWidget, self).
__init__(node, _WIDGET_NAME)
22 magnetometer_widgets = [
23 self.sensor_magnetometer_widget,
35 self.sensor_accel_x_label.setText(self.
_imu_monitor.accel_x_string)
36 self.sensor_accel_y_label.setText(self.
_imu_monitor.accel_y_string)
37 self.sensor_accel_z_label.setText(self.
_imu_monitor.accel_z_string)
40 self.sensor_gyro_x_label.setText(self.
_imu_monitor.vel_x_string)
41 self.sensor_gyro_y_label.setText(self.
_imu_monitor.vel_y_string)
42 self.sensor_gyro_z_label.setText(self.
_imu_monitor.vel_z_string)
45 self.sensor_magnetometer_x_label.setText(self.
_mag_monitor.x_string)
46 self.sensor_magnetometer_y_label.setText(self.
_mag_monitor.y_string)
47 self.sensor_magnetometer_z_label.setText(self.
_mag_monitor.z_string)
54 super(SensorDataPlugin, self).
__init__(context, _WIDGET_NAME, SensorDataWidget)