Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/emc/motion/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,19 @@ static void set_operating_mode(void)

/* check entering free space mode */
if (!emcmotInternal->coordinating && GET_MOTION_COORD_FLAG()) {
if (GET_MOTION_INPOS_FLAG()) {
/* in position is the planner's; the joints follow it through
the cubics and come to rest a few cycles later. Taking
pos_cmd before that leaves them short of the end. A moving
external offset never rests, so it does not hold this up. */
int at_rest = 1;
for (joint_num = 0; joint_num < NO_OF_KINS_JOINTS; joint_num++) {
CUBIC_STRUCT *cu = &joints[joint_num].cubic;
if (cu->x0 != cu->x3 || cu->x1 != cu->x3 || cu->x2 != cu->x3) {
at_rest = 0;
}
}
if (GET_MOTION_INPOS_FLAG()
&& (at_rest || hal_get_bool(emcmot_hal_data->eoffset_active))) {
for (joint_num = 0; joint_num < ALL_JOINTS; joint_num++) {
/* point to joint data */
joint = &joints[joint_num];
Expand Down
2 changes: 1 addition & 1 deletion src/emc/usr_intf/gscreen/gscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def __init__(self):
units=self.inifile.find("AXIS_X","UNITS")
if units==None:
self.add_alarm_entry(_("No UNITS entry found in [TRAJ] or [AXIS_X] of INI file"))
units = inifile.maplinearunits(units, fallback=1.0)
units = self.inifile.maplinearunits(units, fallback=1.0)
if 1.0 == units:
self.machine_units_mm=1
conversion=axis_kinds.unit_factors(self.inifile, 1.0/25.4)
Expand Down
Loading