Commit 8d6de7f1 authored by Benjamin Mummery's avatar Benjamin Mummery 💻

test: plots update to 60Hz?

parent 840a9678
Pipeline #2810 canceled with stages
......@@ -664,18 +664,19 @@ class NativeUI(HEVClient, QMainWindow):
self.expert_handler.UpdateExpert.connect(widget.update_value)
# Plot data and measurements should update on a timer
self.plot_timer = QTimer()
self.plot_timer.setInterval(16) # just faster than 60Hz
self.plot_timer.timeout.connect(self.data_handler.on_timeout)
# All other paramters should update on a slower frequncy
self.timer = QTimer()
self.timer.setInterval(1000) # 1 Hz
for handler in self.__payload_handlers:
self.timer.timeout.connect(handler.on_timeout)
if handler not in [self.data_handler, self.alarm_handler]:
self.timer.timeout.connect(handler.on_timeout)
self.timer.start()
# Plot data and measurements should update on a timer
self.plot_timer = QTimer()
self.plot_timer.setInterval(16) # just faster than 60Hz
self.plot_timer.timeout.connect(self.data_handler.on_timeout)
# Localisation needs to update widgets
# localised_widgets = [
# self.widgets.normal_measurements,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment