>
> Oops, the documentation is wrong here.
>

So I had a good reason to be confused this time, that does not happen to me
often :)


> 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
>

That explains why I did not notice stat.motion_type deviate from 0 when I
was testing, since I was only changing the motion mode. I guess if I had
issued an MDI is would have changed, and then I would have been really
confused.

I updated the python-interface webpage and the linuxcnc python module
> doc strings to reflect this.
>

 Thanks Sebastian!

Kurt

On Sun, Apr 9, 2017 at 6:22 PM, Sebastian Kuzminsky <s...@highlab.com> wrote:

> 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
>
------------------------------------------------------------------------------
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

Reply via email to