-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linuxcncrsh config cleanup as test prep. #3188
base: master
Are you sure you want to change the base?
Conversation
…st config. Fix [JOINT_0] velocity and accel. Add [EMC]MACHINE to reduce warnings. Add [TRAJ]SPINDLES to tighten tests.
… linuxcncrsh as part of the test.
Can you explain the purpose of this PR? |
… to linuxcnc set mdi. May still need to trap some of the M codes and homing.
I should have referenced #3180 in the title. During investigation into linuxcncrsh seg fault (and working on a LightBurn translator) I was running more sim tests of linuxcncrsh. I noticed linuxcnc complains with a few warnings that could be cleaned up in the config. [EMC]MACHINE= needs to be added and [JOINT_0]MAX accel and velocity have LINEAR. The [JOINT_0] changes are fixed in the 2.9 branch but not the master.
The seg faults occur in when the number of spindles is not specified specified in the get/set spindle/brake/override commands. Instead of modifying LIB:core_sim.hal, I made it local and explicitly defined the [TRAJ]SPINDLES=2 to make it easier to test multiple spindles in the get/set spindle/brake commands.
My interest in linuxcncrsh is driven by the desire to use the LightBurn interface to setup my linuxcnc router for laser cutting. LightBurn has some nice laser tests and positioning features relative to laser cutting. The *.ngc files are typical laser adjustment files generated by LightBurn that I want to run through linuxcncrsh prior to downloading the entire .ngc and running within linuxcnc. I can create a separate test directory that only tests the .ngc files if that makes more sense? These files need more work to ensure they fit within the sim config dimensions. I do think all the linuxcncrsh-test.ini/core_lib.hal changes belong in all linuxcncrsh tests in 2.9 and master. Looking through the issues mentioning linuxcncrsh, I noticed reports of tool table init problems when .tbl wasn't used. Adding a known tool table allows better testing. (Complete testing would still test table not specified.) I learned years ago that testing is important. One critical lesson was once an issue occurs in released code, a test case should be added to make sure the issue doesn't creep in again. |
Slight rethink. I show four commits for this PR. Could you accept the first two commits and I will redo the last two commits adding LightBurn .ngc testing as a separate test case? Or I could figure out how to retract those commits if that's easier. |
Use local instead of LIB:core_sim.hal and define EMC_MOT num_spindles=[TRAJ]SPINDLES based on test config.
Fix [JOINT_0] velocity and accel. Add [EMC]MACHINE to reduce warnings.
Add [TRAJ]SPINDLES to tighten tests.