Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ja: Command isn't tracking feedback in machine-off #45

Closed
samcoinc opened this issue Mar 10, 2016 · 3 comments
Closed

ja: Command isn't tracking feedback in machine-off #45

samcoinc opened this issue Mar 10, 2016 · 3 comments

Comments

@samcoinc
Copy link
Collaborator

Here are the steps I follow to reproduce the issue:

1.On a servo machine with encoder feedback - after machine is up / homed
2.Toggle machine back off
3.Physically move axis
5.Toggle machine back on
6.You instantly get a following air for that axis and machine powers back off.
7.Currently no way to fix this state

On sim
1.Power up and home
2.Open halcmd
3.unlink joint.0.motor-pos.fb
4.setp joint.0.motor-pos-fb 5
5.Toggle machine back on.
6.At this point - fb should equal commanded.. It doesn't and you get a following error.

This is what I expected to happen:

The machine should turn on and the fb should equal cmd position

This is what happened instead:

Following error

It worked properly before this:

If you do the exact same sequence in 2.7 - when you toggle power on - the machine turns on as expected.

@samcoinc
Copy link
Collaborator Author

Ok - so the above directions seem to not work 100% of the time. What does seem to work 100% of the time is

  1. power up - home machine
  2. open halcmd
  3. unlink joint.0.motor-pos-fb
  4. jog X axis -> get a following error
  5. toggle machine on. - > following error -> machine turns off.

cradek pushed a commit that referenced this issue Mar 11, 2016
attempted restart after forced ferror in sim would fail because
the axis gui would restart in teleop mode

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
@jepler
Copy link
Contributor

jepler commented Mar 11, 2016

I think another connected issue is how ja doesn't update cartesian feedback position from joint feedback position while in "machine off" mode.

  1. power on, home all, machine off
  2. open halcmd
  3. unlink joint.0.motor-pos-fb
  4. setp joint.0.motor-pos-fb various values

Steps 3/4 are emulating the case where you have a servo machine where you can turn the motor shafts with the amplifiers off, or if you have a nice big machine where the Z axis droops measurably with amplifiers off.

Expected: cartesian feedback position tracks changes in joint feedback, as it does in 2.7

I think that if this cartesian-tracks-joints behavior were happening, then the fix at 3cd7b92 would not be needed (but is probably harmless)

@jepler
Copy link
Contributor

jepler commented Mar 15, 2016

I tested at the tip of ja12 and the steps I described in my previous comment now work as I expect. @samcoinc also says things are better for him.

@jepler jepler closed this as completed Mar 15, 2016
cradek pushed a commit that referenced this issue Apr 3, 2016
attempted restart after forced ferror in sim would fail because
the axis gui would restart in teleop mode

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
cradek pushed a commit that referenced this issue May 12, 2016
attempted restart after forced ferror in sim would fail because
the axis gui would restart in teleop mode

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
cradek pushed a commit that referenced this issue Jun 18, 2016
attempted restart after forced ferror in sim would fail because
the axis gui would restart in teleop mode

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
cradek pushed a commit that referenced this issue Jun 27, 2016
attempted restart after forced ferror in sim would fail because
the axis gui would restart in teleop mode

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants