[LinuxCNC/linuxcnc PR#142] limit3.comp: add ‘in-limit’ output pin

未分类 bolang 4个月前 (10-15) 32次浏览

Issue #142 | 状态: 已关闭 | 作者: jmkasunich | 创建时间: 2016-08-16


The ‘in-limit’ pin is false when the output is exactly
tracking the input, and true when position, velocity,
or accel limit causes the output to differ from the
input.

Also replaced test limit3.1 (which was a duplicate
of limit3.0) with a more complete test that verifies
accel and velocity limitation and the ‘in-limit’ pin.

Backwards compatible – just ignore the new output.

Signed-off-by: John Kasunich jmkasunich@fastmail.fm


评论 (2)

#1 – jepler 于 2016-08-16

@jmkasunich because of the way github pull requests work, the second commit you added to your master branch, “halstreamer: allow comments in input stream” becomes a part of this pull request. To have multiple outstanding pull requests with different contents, you need to use a different branch name for each one. Each branch should start at linuxcnc “uptream” master.

There’s also at least one problem with the limit3 change that I spotted, look for the line comment I’ll make in just a moment…


#2 – jmkasunich 于 2016-08-16

On Tue, Aug 16, 2016, at 11:06 AM, Jeff Epler wrote:

> @jmkasunich because of the way github pull requests work, the second commit you added to your master branch, “halstreamer: allow comments in input stream” becomes a part of this pull request. To have multiple outstanding pull requests with different contents, you need to use a different branch name for each one. Each branch should start at linuxcnc “uptream” master.
>
> Well that’s annoying. I started a pull request for the second commit
> last night, when I saw that it was including the first commit (which
> hadn’t been merged yet), I stopped, figuring I would re-submit after
> the first one merged. I didn’t realize that it added the second commit
> to the first PR, even though the commit happened AFTER the PR.
> That’s just dumb IMO.

I guess in the future I’ll have to use branches. Although in this case
could I have submitted a single PR for all four commits? Each commit
stands alone and has its own meaningful commit message, but does
putting them all in one pull request mess anything up? Seems like it
would be less work for the maintainers.

> There’s also at least one problem with the limit3 change that I spotted, look for the line comment I’ll make in just a moment…

I answered that separately (from github). The “if (load)” branch
returns without running the rest of the code, so I need to set the
hal pin, not the internal variable.

##

John Kasunich
jmkasunich@fastmail.fm


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

喜欢 (0)