On 04/09/2017 01:54 PM, Kurt Jacobson wrote: > Based on the Python Interface docs[1] it looks like stat.motion_type should > return one of TRAJ_MODE_COORD, TRAJ_MODE_FREE, TRAJ_MODE_TELEOP, but as > far as I can tell it only returns 0, which is not equal to any of > TRAJ_MODE_COORD, TRAJ_MODE_FREE, TRAJ_MODE_TELEOP which are 2, 1, 3 > respectively.
Oops, the documentation is wrong here. stat.motion_type has the same value as the motion.motion_type HAL pin, described in the motion(9) manpage: http://linuxcnc.org/docs/devel/html/man/man9/motion.9.html#MOTION PINS stat.motion_mode has the mode of the Motion controller, that's what you're looking for. I updated the python-interface webpage and the linuxcnc python module doc strings to reflect this. -- Sebastian Kuzminsky ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers