qtvcp -CYCLE_TIME fixes for HAL pins
Third times the charm? I musta been asleep. Stems from seconds vrs milliseconds. Since I just invented GRAPHICS and HALPIN CYCLE_TIME they will all be in MS Caused widgets to not show and no response.
This commit is contained in:
parent
07d251df50
commit
890187289f
2 changed files with 3 additions and 5 deletions
|
|
@ -89,7 +89,7 @@ class QPin(hal.Pin, QObject):
|
||||||
QPin.UPDATE = True
|
QPin.UPDATE = True
|
||||||
self.timer = QTimer()
|
self.timer = QTimer()
|
||||||
self.timer.timeout.connect(self.update_all)
|
self.timer.timeout.connect(self.update_all)
|
||||||
self.timer.start(INI.GRAPHICS_CYCLE_TIME)
|
self.timer.start(INI.HALPIN_CYCLE_TIME)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_stop(self):
|
def update_stop(self):
|
||||||
|
|
|
||||||
|
|
@ -74,14 +74,12 @@ class _IStat(object):
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
ct = float(self.INI.find('DISPLAY', 'CYCLE_TIME') or 100) # possibly in seconds or ms
|
ct = float(self.INI.find('DISPLAY', 'CYCLE_TIME') or 100) # possibly in seconds or ms
|
||||||
print ct
|
|
||||||
if ct < 1:
|
if ct < 1:
|
||||||
self.CYCLE_TIME = int(ct * 1000)
|
self.CYCLE_TIME = int(ct * 1000)
|
||||||
else:
|
else:
|
||||||
self.CYCLE_TIME = int(ct)
|
self.CYCLE_TIME = int(ct)
|
||||||
print self.CYCLE_TIME
|
self.GRAPHICS_CYCLE_TIME = float(self.INI.find('DISPLAY', 'GRAPHICS_CYCLE_TIME') or 100) # in seconds
|
||||||
self.GRAPHICS_CYCLE_TIME = float(self.INI.find('DISPLAY', 'GRAPHICS_CYCLE_TIME') or 0.1) # in seconds
|
self.HALPIN_CYCLE_TIME = float(self.INI.find('DISPLAY', 'HALPIN_CYCLE_TIME') or 100) # in seconds
|
||||||
self.HALPIN_CYCLE_TIME = float(self.INI.find('DISPLAY', 'HALPIN_CYCLE_TIME') or 0.1) # in seconds
|
|
||||||
self.MDI_HISTORY_PATH = self.INI.find('DISPLAY', 'MDI_HISTORY_FILE') or '~/.axis_mdi_history'
|
self.MDI_HISTORY_PATH = self.INI.find('DISPLAY', 'MDI_HISTORY_FILE') or '~/.axis_mdi_history'
|
||||||
self.QTVCP_LOG_HISTORY_PATH = self.INI.find('DISPLAY', 'LOG_FILE') or '~/qtvcp.log'
|
self.QTVCP_LOG_HISTORY_PATH = self.INI.find('DISPLAY', 'LOG_FILE') or '~/qtvcp.log'
|
||||||
self.MACHINE_LOG_HISTORY_PATH = self.INI.find('DISPLAY', 'MACHINE_LOG_PATH') or '~/.machine_log_history'
|
self.MACHINE_LOG_HISTORY_PATH = self.INI.find('DISPLAY', 'MACHINE_LOG_PATH') or '~/.machine_log_history'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue