kcjengr / qtpyvcp

QtPyVCP - Qt and Python based Virtual Control Panel framework for LinuxCNC.
https://www.qtpyvcp.com
Other
88 stars 48 forks source link

Fix timing issue with active_wc_index #145

Closed Connor9220 closed 1 month ago

Connor9220 commented 1 month ago

active_wc_index can sometimes be set to -1. I think this is a timing issue, as it dervies this value from _status.stat.g5x_index In getActiveWcsIndex() method, it returns self._status.stat.g5x_index -1 If _status.stat.g5x_index is 0 because it's not been initialized from linuxcnc yet, then it will return -1, which breaks the views.

Add Machine EXT View for default / persistant view optin in yaml file.

ToDo Add avility to set BASE scale value for setViewMachine and/or maybe default zoom level

TurBoss commented 1 month ago

thank you so much!