We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1940387 + b7914b4 commit c5522b7Copy full SHA for c5522b7
1 file changed
src/emc/motion/homing.c
@@ -1141,6 +1141,10 @@ static int base_1joint_state_machine(int joint_num)
1141
/* set the current position to 'home_offset' */
1142
if (H[joint_num].home_flags & HOME_ABSOLUTE_ENCODER) {
1143
offset = H[joint_num].home_offset;
1144
+ joint->pos_cmd += joint->motor_offset;
1145
+ joint->pos_fb += joint->motor_offset;
1146
+ joint->free_tp.curr_pos += joint->motor_offset;
1147
+ joint->motor_offset = 0;
1148
} else {
1149
offset = H[joint_num].home_offset - joint->pos_fb;
1150
}
0 commit comments