[LinuxCNC/linuxcnc PR#605] docs – Correct the Python Interface example function ok_for_mdi

未分类 bolang 5个月前 (10-15) 27次浏览

Issue #605 | 状态: 已关闭 | 作者: lorenzncode | 创建时间: 2019-06-09


This PR corrects the logic in the okformdi() example function. I filed a separate request for 2.7.


评论 (3)

#1 – jethornton 于 2019-06-09

Both PR’s are on Master and it looks like your repo was not up to date. You should git pull –rebase before submitting the PR and git checkout 2.7.


#2 – lorenzncode 于 2019-06-09

I changed the base branch of the PR to 2.8. Is that better? If so I can try making the same change to the other PR that was intended for the 2.7 branch.


#3 – lorenzncode 于 2019-06-09

I filed the separate PR for 2.8 because the 2.7 example will not work in 2.8.

For example consider a JOINTS=4 machine with trivkins coordinates=XYYZ in 2.8.

s.axes in 2.8 will return 3
s.joints (new in 2.8) will return 4. This is what we need to compare with s.homed.count(1) for 2.8.


原始Issue: https://github.com/LinuxCNC/linuxcnc/pull/605

喜欢 (0)