Commit 4657973
committed
command.c: EMCMOT_JOINT_ABORT set joint jog inactive
Forum users using probe_basic (not in-tree) and a
pendant vc-4ps (not in-tree) reported unexpected
messages: "Ignoring task mode change while jogging"
after activating mdi mode even though they were not
jogging. This message was introduced by changes for
commit 87f66fe
The problem was not duplicated using in-tree qtvcp
qtdragon.ini sim config(s).
1) User vc-4ps hal configurations typically connect
halui plus/minus jog pins for each axis letter with the
corresponding identity joint number (e.g.,
halui.joint.0.plus == halui.axis.x.plus, ... etc)
2) halui plus/minus jogging issues EMCMOT_JOINT_ABORT
to terminate an axis *or* a joint jog but formerly joint
jogging pins were not set to indicate jogging inactive
when the message was specifying a joint number.
Note: EMCMOT_JOINT_ABORT is a misnomer, the message is
issued for both joints (using a joint number) and for
axis coordinates (using an axis number)
This commit ensures that EMCMOT_JOINT_ABORT properly
sets joint jogging as inactive (kb, wheel) if message
refers to a valid joint number.
https://forum.linuxcnc.org/qtvcp/46031-a-couple-of-errors-during-update-2-8-2-130-g87f66feaf#247599
diff --git a/src/emc/motion/command.c b/src/emc/motion/command.c
index 2386784..81d8e38 100644
--- a/src/emc/motion/command.c
+++ b/src/emc/motion/command.c
@@ -480,6 +480,7 @@ void emcmotCommandHandler(void *arg, long servo_period)
return;
}
}
+ if (GET_MOTION_COORD_FLAG()) return; //silently ignore
}
if (abort) {
switch (emcmotCommand->command) {1 parent b1cb169 commit 4657973
1 file changed
Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | | - | |
576 | | - | |
577 | 575 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
583 | 582 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| |||
0 commit comments