-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure that move in raise_z_for_servo() gives enough space for servo to deploy #2924
Conversation
dx -> dsx dy -> dsy dz -> dsz de -> dse
anything is long, we don't need float there
st_set_position takes long ```void st_set_position(const long& x, const long& y, const long& z, const long& e)```
Make the output of M105 more similar to Repetier. Make the text-print pert of M105 an extra function to make it reusable. `print_heaterstates()` Use `print_heaterstates()` in M019, M190 and M303
For some reason that I cannot determine, using a sub-function causes the Tune sub-menu to act strangely, yet replacing the function call with its code content works perfectly.
//100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed) Caveat Emptor —- I’m not sure that this really makes sense, but why keep someone from using it?
• Removing trailing whitespace • Adjusting indention for better readability • Removing duplicated entries
In my opinion the complete line is rubbish and unneeded. You only have to care whether Even the decision (The ideal safe setup for a EDITED 3 times. All said above expects an empty bed. |
@KiteLab 1751 1751
1752 1752 void raise_z_for_servo() {
1753 1753 float zpos = current_position[Z_AXIS], z_dest = Z_RAISE_BEFORE_PROBING;
1754 - z_dest += axis_known_position[Z_AXIS] ? zprobe_zoffset : zpos;
1754 + z_dest += axis_known_position[Z_AXIS] ? zprobe_zoffset*Z_HOME_DIR : zpos; //zprobe_zoffset = Z_PROBE_OFFSET_FROM_EXTRUDER a negative number for a switch on servo arm
1755 + //so combine with Z_HOME_DIR -1 to move enough away from bed for the probe
1755 1756 if (zpos < z_dest) do_blocking_move_to_z(z_dest); // also updates current_position
1756 1757 }
1757 1758 |
We are in a PR here. The diff is one click away. I agree. |
This is looking pretty good as a solution to the issue. It should be rebased onto |
@thinkyhead All Branches were created against Would it be as simple as issuing Of course, I can clone the |
Base your rebase on RCBugFix
|
@Wackerbarth, Thanks for your hint that gave me part of what I need/want to do... Sorry for the following newbie questions (I guess yes but do not want to mess everything without first asking) Should I now |
If you do a
of that same branch to your GitHub account, this PR will be updated and then reflect your revised version just as if it had been the original version. It is not necessary to create a new PR for the purpose. |
Ok, seems that my rebase did work... Thanks @Wackerbarth I did learn some more.. |
This weekend we are prepping the next release candidate, to get users past some bugs affecting LCD menus and a few other things. So I've rebased this and it should be going in shortly. |
@thinkyhead Thanks for merging it... |
Using M401, the servo was crashing into the bed when deploying...
It seems that original code did not take into account that zprobe_zoffset is negative for a servo mounted switch
I added some debug code
that produced a move zpos = 4.5 mm too small for the probe (4.86 mm)
I modified the code to read
This clears the space for the probe to deploy
The proposed request for change has no debug code and some comments