Skip to content
Draft
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
4 changes: 4 additions & 0 deletions src/emc/motion/homing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,10 @@ static int base_1joint_state_machine(int joint_num)
/* set the current position to 'home_offset' */
if (H[joint_num].home_flags & HOME_ABSOLUTE_ENCODER) {
offset = H[joint_num].home_offset;
joint->pos_cmd += joint->motor_offset;
joint->pos_fb += joint->motor_offset;
joint->free_tp.curr_pos += joint->motor_offset;
joint->motor_offset = 0;
} else {
offset = H[joint_num].home_offset - joint->pos_fb;
}
Expand Down
Loading