- Posts: 24
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
WOW, I can't believe this is the first person to hit this bug! Now, this code has been only in theFinally i found the bug:
The Axis prints "waiting for s.axes" because hal_ppmc driver crashes at line 1147.
src/hal/drivers/hal_ppmc.c -> funcion static void read_encoders(slot_data_t *slot)
1146 } else {
1147 *(slot->encoder.vel) = vel; // encoder without timestamp
1148 }
The tracking history:
1) Axis prints "waiting for s.axes" because src/emc/ini/iniaxis.cc fails in function loadAxis at emcAxisSetBacklash
2) src/emc/task/taskintf.cc fails at function emcAxisSetBacklash because function usrmotWriteWriteEmcmotCommand fails.
3) src/emc/motion/usrmotintf.cc fails at function usrmotWriteEmcmotCommand because function usrmotReadEmcmotStatus always return s.commandNumEcho = 0 (must be equal to commandNum sent)
4) Fixed this Axis loads.
5) But now i get an RTAPI fault.
6) So i read rtfaults.txt ( git.linuxcnc.org/gitweb?p=linuxcnc.git;a...rtfaults.txt;hb=HEAD ) and found that the problem was hal_ppmc.c at line 1147.
7) I commented that line and recompile.
I got back with the change in 4) and recompile again.
9) Now i can run the univstep example config (with Axis and hal_ppmc driver). I can get out of estop, home all and MDI G0 X100 Y100 Z100.
Please Log in or Create an account to join the conversation.
Well, after looking at it a bit, the fix seemed so obvious and simple, thatI'm a little afraid to hack into this and make things worse.
Please Log in or Create an account to join the conversation.
Yes, that gets it in as a bugfix in 2.5, and it will then get merged into the dev branch in a day or so.I went ahead and pushed, seems to be in the v2.5_branch tree, is
this the right place to be putting this?
Please Log in or Create an account to join the conversation.
I'm not sure if he is the first, but he is certainly the first to resolve it. Well done!WOW, I can't believe this is the first person to hit this bug!
Please Log in or Create an account to join the conversation.