[LinuxCNC/linuxcnc Issue#103] small bugs in Axis

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

Issue #103 | 状态: 已关闭 | 作者: pkmcnc | 创建时间: 2016-07-03

标签: bug affects axis affects master


Here are the steps I follow to reproduce the issue:

1.Start hexapod-sim config
2.Home
3.Press $

This is what I expected to happen:

Switch to joint mode

This is what happened instead:

$ doesn’t switch the mode from the first attempt

It worked properly before this:

Works correct in 2.7.4

Information about my hardware and software:

– I am using Debian from ISO in VirtualBox
– I am running a binary I built myself
– I am using master LinuxCNC from git, just updated
– I am using AXIS


评论 (6)

#1 – SebKuzminsky 于 2016-07-03

In the current tip of the 2.7 I did this:
1. Start sim/axis/vismach/hexapod-sim/hexapod.ini
2. Hit F1, then F2
3. Click the “Home All” button
4. Observe that the machine homes all joints and all joints get the “homed” target icon in the DRO
5. Hit $ key to switch from Joint to World mode
6. Observe that the “joints” DRO is replaced with the “axes” DRO.

When doing the same sequence on the master branch the behavior is different: after “Home All” finishes, the machine automatically switches to World mode, indicated by the “joints” DRO being replaced by the “axes” DRO.

In this state the “$” key still switches back and forth between Joint and World mode. It’s just that the new default for a homed machine is to be in World mode.

This was an intentional change, we felt that it was an improvement over the old behavior because most users would want to be in World mode whenever possible, now that incremental jogging and wheel jogging works in World mode.

Did we miss some reason to be in Joint mode after homing?


#2 – pkmcnc 于 2016-07-03

I’m well aware of auto teleop, it’s a great feature!
But $ should be pressed twice to switch to joint mode after homing. Then it works as supposed. Probably it’s not aware that auto teleop already switched the mode? So it switches to teleop (but we are already there) and the next press switches to joint.


#3 – SebKuzminsky 于 2016-07-03

Ah, I see what you’re saying, I misunderstood your bug report before. Yes, i reproduce that behavior in master (c2aaae25): after Home All and auto-teleop, hitting $ once does nothing, hitting $ again switches to Joint mode. That does indeed seem like a bug, I’ll look into it.


#4 – SebKuzminsky 于 2016-07-03

Dewey fixed this in f9a817ef86 (thanks!), but i just noticed a related bug. After Home All and auto-teleop, the “View” menu’s options of “Joint mode” and “World mode” still shows the marker by “Joint mode”, which is not right. I think there’s a mismatch between s.motionmode and the vars.teleopmode that sort of tries to mirror it.


#5 – pkmcnc 于 2016-07-03

I pulled the latest commits and the bug is gone for most non-identity configs: hexapod-sim, max5kins, lineardeltakins
But I also have 5axes/5joints sim config with custom kinematics, and it still has the bug. I’ll dig more to reproduce it.


#6 – pkmcnc 于 2016-07-25

Fixed


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/103

喜欢 (0)