Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
a371a057
Commit
a371a057
authored
Apr 20, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix delta Auto Calibration
parent
c01f1b7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+13
-17
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
a371a057
...
@@ -1277,7 +1277,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
...
@@ -1277,7 +1277,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
current_position
[
Z_AXIS
]
=
corrected_position
.
z
;
current_position
[
Z_AXIS
]
=
corrected_position
.
z
;
// put the bed at 0 so we don't go below it.
// put the bed at 0 so we don't go below it.
current_position
[
Z_AXIS
]
=
zprobe_zoffset
;
current_position
[
Z_AXIS
]
+
=
zprobe_zoffset
;
sync_plan_position
();
sync_plan_position
();
}
}
...
@@ -1541,36 +1541,31 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
...
@@ -1541,36 +1541,31 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
int
axis_home_dir
=
home_dir
(
axis
);
int
axis_home_dir
=
home_dir
(
axis
);
current_position
[
axis
]
=
0
;
current_position
[
axis
]
=
0
;
sync_plan_position
();
sync_plan_position
();
// Move towards the endstop until an endstop is triggered
destination
[
axis
]
=
1.5
*
max_length
[
axis
]
*
axis_home_dir
;
destination
[
axis
]
=
1.5
*
max_length
[
axis
]
*
axis_home_dir
;
feedrate
=
homing_feedrate
[
axis
];
feedrate
=
homing_feedrate
[
axis
];
line_to_destination
();
line_to_destination
();
st_synchronize
();
st_synchronize
();
enable_endstops
(
false
);
// Ignore Z probe while moving away from the top microswitch.
// Set the axis position as setup for the move
current_position
[
axis
]
=
0
;
current_position
[
axis
]
=
0
;
sync_plan_position
();
sync_plan_position
();
// Move away from the endstop by the axis HOME_BUMP_MM
destination
[
axis
]
=
-
home_bump_mm
(
axis
)
*
axis_home_dir
;
destination
[
axis
]
=
-
home_bump_mm
(
axis
)
*
axis_home_dir
;
line_to_destination
();
line_to_destination
();
st_synchronize
();
st_synchronize
();
enable_endstops
(
true
);
// Stop ignoring Z probe while moving up to the top microswitch again.
// Slow down the feedrate for the next move
// Slow down the feedrate for the next move
set_homing_bump_feedrate
(
axis
);
set_homing_bump_feedrate
(
axis
);
// Move slowly towards the endstop until triggered
destination
[
axis
]
=
2
*
home_bump_mm
(
axis
)
*
axis_home_dir
;
line_to_destination
();
st_synchronize
();
// retrace by the amount specified in endstop_adj
// retrace by the amount specified in endstop_adj
if
(
endstop_adj
[
axis
]
*
axis_home_dir
<
0
)
if
(
endstop_adj
[
axis
]
*
axis_home_dir
<
0
)
{
{
enable_endstops
(
false
);
// Ignore Z probe while moving away from the top microswitch.
sync_plan_position
();
sync_plan_position
();
destination
[
axis
]
=
endstop_adj
[
axis
];
destination
[
axis
]
=
endstop_adj
[
axis
];
line_to_destination
();
line_to_destination
();
st_synchronize
();
st_synchronize
();
enable_endstops
(
true
);
// Stop ignoring Z probe while moving up to the top microswitch again.
}
}
// Set the axis position to its home position (plus home offsets)
// Set the axis position to its home position (plus home offsets)
...
@@ -1892,8 +1887,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
...
@@ -1892,8 +1887,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
}
}
void
save_carriage_positions
(
int
position_num
)
{
void
save_carriage_positions
(
int
position_num
)
{
for
(
int8_t
i
=
0
;
i
<
NUM_AXIS
;
i
++
)
for
(
int8_t
i
=
0
;
i
<
NUM_AXIS
;
i
++
)
{
{
saved_positions
[
position_num
][
i
]
=
saved_position
[
i
];
saved_positions
[
position_num
][
i
]
=
saved_position
[
i
];
}
}
}
}
...
@@ -1938,6 +1932,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
...
@@ -1938,6 +1932,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
feedrate
=
saved_feedrate
;
feedrate
=
saved_feedrate
;
feedrate_multiplier
=
saved_feedrate_multiplier
;
feedrate_multiplier
=
saved_feedrate_multiplier
;
refresh_cmd_timeout
();
refresh_cmd_timeout
();
endstops_hit_on_purpose
();
// clear endstop hit flags
}
}
void
prepare_move_raw
()
{
void
prepare_move_raw
()
{
...
@@ -2031,7 +2026,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
...
@@ -2031,7 +2026,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
}
}
// First Check for control endstop
// First Check for control endstop
SERIAL_ECHOLN
(
"First check for
control endstop
"
);
SERIAL_ECHOLN
(
"First check for
adjust Z-Height
"
);
home_delta_axis
();
home_delta_axis
();
deploy_z_probe
();
deploy_z_probe
();
//Probe all points
//Probe all points
...
@@ -6412,6 +6407,7 @@ void clamp_to_software_endstops(float target[3]) {
...
@@ -6412,6 +6407,7 @@ void clamp_to_software_endstops(float target[3]) {
inline
float
prevent_dangerous_extrude
(
float
&
curr_e
,
float
&
dest_e
)
{
inline
float
prevent_dangerous_extrude
(
float
&
curr_e
,
float
&
dest_e
)
{
float
de
=
dest_e
-
curr_e
;
float
de
=
dest_e
-
curr_e
;
if
(
debugDryrun
())
return
de
;
if
(
de
)
{
if
(
de
)
{
if
(
degHotend
(
active_extruder
)
<
extrude_min_temp
)
{
if
(
degHotend
(
active_extruder
)
<
extrude_min_temp
)
{
curr_e
=
dest_e
;
// Behave as if the move really took place, but ignore E part
curr_e
=
dest_e
;
// Behave as if the move really took place, but ignore E part
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment