LinuxCNC Python module
axes (returns integer) - number of axes. Derived from [TRAJ]COORDINATES INI value.
When I try and get the axes I get the following error:
s.poll()
s.axes
AttributeError: 'linuxcnc.stat' object has no attribute 'axes'. Did you mean: 'axis'?
I looked in src/emc/task/taskinf.cc and can't find stat->axes anywhere, so was this removed or is the documents wrong?
JT
Please Log in or Create an account to join the conversation.
stat->axes = localEmcTrajAxes;
So someone removed it at some point... how frustrating.
JT
Please Log in or Create an account to join the conversation.
43deeedd065faf31254933ee56af01c314823827
JT
Please Log in or Create an account to join the conversation.
[edit]
This will not only give you how many axes there are but actually which ones (ie XYZABCUVW)
But, yes the reference to 'axes' should be removed from the docs .
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19188
- Thank you received: 6430
Did you try to stat "axis" ?
Please Log in or Create an account to join the conversation.
Attachments:
Please Log in or Create an account to join the conversation.
It feels like axes was removed without any thought...
JT
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19188
- Thank you received: 6430
I was thinking maybe a typo, made that mistake more than once typing on this forum, despite knowing "axis" is a single axis and "axes" is multiple.
Please Log in or Create an account to join the conversation.
I have no clue what happened to this post lol...I don't see why axes was removed as the [TRAJ] COORDINATES is still a valid and required ini entry.
Maybe because it was felt to be redundant information as 'axis_mask' actually gives you more information about the [TRAJ] COORDINATES entry.
The axis status gave you the number of axes without having to know new math...
JT
Please Log in or Create an account to join the conversation.
github.com/LinuxCNC/linuxcnc/pull/2789
Please Log in or Create an account to join the conversation.