We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b13d3b commit b7914b4Copy full SHA for b7914b4
1 file changed
src/emc/motion/homing.c
@@ -1128,6 +1128,10 @@ static int base_1joint_state_machine(int joint_num)
1128
/* set the current position to 'home_offset' */
1129
if (H[joint_num].home_flags & HOME_ABSOLUTE_ENCODER) {
1130
offset = H[joint_num].home_offset;
1131
+ joint->pos_cmd += joint->motor_offset;
1132
+ joint->pos_fb += joint->motor_offset;
1133
+ joint->free_tp.curr_pos += joint->motor_offset;
1134
+ joint->motor_offset = 0;
1135
} else {
1136
offset = H[joint_num].home_offset - joint->pos_fb;
1137
}
0 commit comments