You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an attempt to make sure I don't run into the problems we discussed (http://github.com/grbl/grbl/issues/74), I've had a go at integrating preGrbl into my python GUI (which I'll be making a repo for soon). However it doesn't seem to round the numbers, e.g. X100.00000 remains as-is.
I've played around with the 'ndigits' parameter and changed the unit_conv function to
defunit_conv(val) : # Converts value to mmifgc['inches_mode'] : val*=inch2mmreturnfout_conv(val) ### this line changed
but to no avail. Is there an easy modification to the code which would do the rounding?
The text was updated successfully, but these errors were encountered:
Sorry about this problem. I haven't worked on this code in a long while. Grbl's parser has since been updated with better error checking than this. Anyhow, I can't recall having this issue... the function round(x,n) should take a number and round it to n digits. I may have overlooked something in this code, and it might not be doing it correctly. I'll leave this issue open so it'll remind me to fix it when I can get some time.
Sonny,
In an attempt to make sure I don't run into the problems we discussed (http://github.com/grbl/grbl/issues/74), I've had a go at integrating preGrbl into my python GUI (which I'll be making a repo for soon). However it doesn't seem to round the numbers, e.g. X100.00000 remains as-is.
I've played around with the 'ndigits' parameter and changed the unit_conv function to
but to no avail. Is there an easy modification to the code which would do the rounding?
The text was updated successfully, but these errors were encountered: