LinuxCNC Python module
- JT
- Topic Author
- Away
- Administrator
- Posts: 823
- Thank you received: 444
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.
- JT
- Topic Author
- Away
- Administrator
- Posts: 823
- Thank you received: 444
stat->axes = localEmcTrajAxes;
So someone removed it at some point... how frustrating.
JT
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
- Posts: 823
- Thank you received: 444
43deeedd065faf31254933ee56af01c314823827
JT
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
[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: 19408
- Thank you received: 6507
Did you try to stat "axis" ?
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
Attachments:
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
- Posts: 823
- Thank you received: 444
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: 19408
- Thank you received: 6507
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.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
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.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
github.com/LinuxCNC/linuxcnc/pull/2789
Please Log in or Create an account to join the conversation.