Quantcast
Channel: Reprap Forum - Delta Machines
Viewing all articles
Browse latest Browse all 20291

Re: Homing in Marlin

$
0
0
Thanks, Peter, for the reply!

Quote
hercek
Quote
revwarguy
The G28 command is implemented in Marlin.cpp starting at line 996. There is conditional code for Deltas there, since it needs to home up all three axes at once. To do this, it sets the feedrate at 1.732 times the nominal homing feedrate with no comment. (What is that about - i.e., why the hard-coded weird number 1.732?)
It is about sqrt(3). So it is possible that author somehow thought that sin(60°) or cos(30°) should be involved. But I do not have a clue why.

This number is also about my expenditures divided by my income for last month :^) but what's that got to do with homing? Always find it strange when hardcoded odd numbers get used without comment!

Quote
revwarguy
Also, it sets the max length of travel until switch trigger at 3 times Z_MAX_LENGTH (why so much - isn't 1.1 already more than what is possible?)
1.1*Z_MAX_LENGTH is not not enough but Z_MAX_LENGTH+DELTA_DIAGONAL_ROD would be enough if the printer is already callibrated. The best value would be FLOAT_MAX/k where k is a safety factor which would be determined based on the planner code so that no overflow can happen.

Ah, the "if already calibrated" point is well taken.

Quote
revwarguy
I must have a problem since I do not see the back-off occurring.
Probably, I do not use LCD so I'm not sure it calls the same homing code.

I found where the menu item for "prepare...autohome" just does a G28 - its at line 350 in ultralcd.cpp

I'll look into what is going on with my G28
.

Viewing all articles
Browse latest Browse all 20291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>