Skip to content

Commit fceb9ca

Browse files
committed
qtvcp -istat: don't show crtical error on lathe with y axis
Some adbvanced lathe configs add a dummy Y axis so that they can rotate the X axis around Z for mirroring. currently the gcode needs Y defined to work.
1 parent f7829dc commit fceb9ca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/python/qtvcp/qt_istat.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,12 @@ def update(self):
186186
av = self.INI.find('AXIS_%s' % letter.upper(), 'MAX_VELOCITY') or None
187187
aa = self.INI.find('AXIS_%s' % letter.upper(), 'MAX_ACCELERATION') or None
188188
if av is None or aa is None:
189-
log.critical(
190-
'MISSING [AXIS_{}] MAX VeLOCITY or MAX ACCELERATION entry in INI file.'.format(letter.upper()))
189+
# some lathe configs have dummy Y axis for axis rotation G code
190+
if letter == "Y" and self.MACHINE_IS_LATHE:
191+
pass
192+
else:
193+
log.critical(
194+
'MISSING [AXIS_{}] MAX VELOCITY or MAX ACCELERATION entry in INI file.'.format(letter.upper()))
191195

192196
# convert joint number to axis index
193197
# used by dro_widget

0 commit comments

Comments
 (0)