Skip to content

[2.0.x] fix bltouch homing#11379

Merged
thinkyhead merged 4 commits intoMarlinFirmware:bugfix-2.0.xfrom
GMagician:2.0.x-fix-bltouch-when-homing
Jul 27, 2018
Merged

[2.0.x] fix bltouch homing#11379
thinkyhead merged 4 commits intoMarlinFirmware:bugfix-2.0.xfrom
GMagician:2.0.x-fix-bltouch-when-homing

Conversation

@GMagician
Copy link
Contributor

@GMagician GMagician commented Jul 26, 2018

Fix #11378

@GMagician
Copy link
Contributor Author

@thinkyhead ok, as state in previous PR I not tested G28 with bltouch and.....bug.

I supposed that function DEPLOY_PROBE should do as stated but it forget bltouch. Is it not a probe? is it not used as other probes?

@tig33r
Copy link

tig33r commented Jul 26, 2018

Probably missing ")" before return in 1372 line.

Also head after homing Z is around ~15mm above bed.

@GMagician
Copy link
Contributor Author

@tig33r fixed missing bracket but change should not affect home position

@tig33r
Copy link

tig33r commented Jul 26, 2018

I did not change conf file (exactly same as before your commit), just flash my board (due + ramps-fdv2.1) with newest repo changes. Weird behavior, someone else has to evaluate it.

@GMagician
Copy link
Contributor Author

@tig33r can you explain me what happens? bltouch deploy and stow correctly during home? only final position is wrong? What happens to be labeled as "weird"?

@tig33r
Copy link

tig33r commented Jul 26, 2018

Homing process is going ok (move out pin, first fast bed move until pin reach bed, again move out pin and slow bed move until reach bed, at the end bed is moving down like always) but finally head in position 0 is about ~15 mm above bed. Exactly same configuration.h file with bugfix before your change is giving correctly positioned head above bed.

Tommorow I will record video for both conditions.

@Stephane-80
Copy link

hello, same problem here i think.
final position is wrong
it check normally fast and slow but after the slow test ,when it move up the pin get out
and get in after the up move

@thinkyhead
Copy link
Member

thinkyhead commented Jul 26, 2018

I supposed that function DEPLOY_PROBE should do as stated but it forget bltouch. Is it not a probe? is it not used as other probes?

The way the BLTouch's code works came out of a bunch of testing and development, and it was useful to keep BLTouch deploy/stow separate from the general probe deploy/stow. We could probably dig up the PRs where the BLTouch was being developed and fixed to read the rationale.

I've added an extra commit suggesting changes to solve the Z position problem for testing (basically just reverting some of the changes from the earlier PR). I look forward to feedback from testers.

#endif
if (STOW_PROBE()) return;
}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this down to make the revert more complete, but if the other reverts solve the Z position problem then this may turn out to be ok moved back up above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this will solve Z. STOW_PROBE move Z

@tig33r
Copy link

tig33r commented Jul 27, 2018

Looks like it works ok in my setup. Maybe someone else can confirm that fact.

@vincent-ogury
Copy link

The G28 works.
The G29 failed.

@thinkyhead
Copy link
Member

How did G29 fail? The pin didn't deploy at some point during the procedure?

@thinkyhead
Copy link
Member

thinkyhead commented Jul 27, 2018

As this at least partly solves the issue, I will merge it for now, and we can continue to patch following more testing.

@thinkyhead thinkyhead merged commit 5ce5ff8 into MarlinFirmware:bugfix-2.0.x Jul 27, 2018
@vincent-ogury
Copy link

Yes. It goes to the position. Then go down without deploying.
Then go up and say: probe failed.

@vincent-ogury
Copy link

I retry with the last merge and will give a feedback

@vincent-ogury
Copy link

last merge make it work again !!! excellent

@GMagician
Copy link
Contributor Author

GMagician commented Jul 28, 2018

@vincent-ogury, @tig33r, @Stephane-80 I made some minor change to my PR (from my branch) can you test it again, sorry for bothering continuosly

@thinkyhead since stow/deploy_probe functions act with no care of bltouch and since bltouch needs always to deploy and stow. I moved latter calls just before axis move. This should not change any behaviour but will keep deploy just before move call and such calls will be near stow counterpart. It seems following a more correct logic

@hamster65
Copy link

Thanks! It's working again!

@GMagician
Copy link
Contributor Author

PR is just public now....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants