- Posts: 55
- Thank you received: 0
Python Interface name mismatch
- giantstone
- Topic Author
- Offline
- Senior Member
-
Less
More
10 years 1 month ago #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 to join the conversation.
10 years 1 month ago #79848
by andypugh
Replied by andypugh on topic Python Interface name mismatch
Please Log in to join the conversation.
10 years 1 month ago #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 to join the conversation.
10 years 1 month ago #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.
Please Log in to join the conversation.
Time to create page: 0.148 seconds
