Python Interface name mismatch
- giantstone
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 0
01 Sep 2016 02:12 #79806
by giantstone
Python Interface name mismatch was created by giantstone
Hi, I discovered that there is a mismatch between the python interface (linuxcnc.org/docs/2.7/html/config/python...xcnc_stat_attributes) web's information and the program's information.
The web's info linuxcnc.stats().motion_mode is actually the program's stats.motion_type.
The web's info linuxcnc.stats().motion_mode is actually the program's stats.motion_type.
Please Log in or Create an account to join the conversation.
01 Sep 2016 16:53 #79848
by andypugh
Replied by andypugh on topic Python Interface name mismatch
Please Log in or Create an account to join the conversation.
02 Sep 2016 21:58 #79942
by BigJohnT
Replied by BigJohnT on topic Python Interface name mismatch
Can you expand a bit on what is wrong? A code snippet with what you expect and what you got would help.
JT
JT
Please Log in or Create an account to join the conversation.
03 Sep 2016 20:26 - 03 Sep 2016 20:26 #79989
by andypugh
Replied by andypugh on topic Python Interface name mismatch
I think he is saying that the Python interface creates a pin called motion_type
github.com/LinuxCNC/linuxcnc/blob/master...ns/emcmodule.cc#L353
Wheres the docs refer to motion_mode:
linuxcnc.org/docs/2.7/html/config/python...xcnc_stat_attributes
But that also mentions motion.type
And the code creates motion.mode too
github.com/LinuxCNC/linuxcnc/blob/master...ns/emcmodule.cc#L333
So I join the "puzzled" camp without further information.
github.com/LinuxCNC/linuxcnc/blob/master...ns/emcmodule.cc#L353
Wheres the docs refer to motion_mode:
linuxcnc.org/docs/2.7/html/config/python...xcnc_stat_attributes
But that also mentions motion.type
And the code creates motion.mode too
github.com/LinuxCNC/linuxcnc/blob/master...ns/emcmodule.cc#L333
So I join the "puzzled" camp without further information.
Last edit: 03 Sep 2016 20:26 by andypugh.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds