Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
2f761386
Commit
2f761386
authored
Jul 30, 2016
by
Scott Lahteine
Committed by
GitHub
Jul 30, 2016
Browse files
Options
Downloads
Plain Diff
Merge pull request #4468 from thinkyhead/rc_fix_manual_move
Specify manual-movable E axes by extruder type
parents
46c33f1c
696b63e3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/Conditionals_post.h
+4
-0
4 additions, 0 deletions
Marlin/Conditionals_post.h
Marlin/ultralcd.cpp
+17
-16
17 additions, 16 deletions
Marlin/ultralcd.cpp
with
21 additions
and
16 deletions
Marlin/Conditionals_post.h
+
4
−
0
View file @
2f761386
...
...
@@ -322,6 +322,7 @@
#if ENABLED(SINGLENOZZLE) // One hotend, multi-extruder
#define HOTENDS 1
#define E_STEPPERS EXTRUDERS
#define E_MANUAL EXTRUDERS
#define TOOL_E_INDEX current_block->active_extruder
#undef TEMP_SENSOR_1_AS_REDUNDANT
#undef HOTEND_OFFSET_X
...
...
@@ -329,6 +330,7 @@
#elif ENABLED(SWITCHING_EXTRUDER) // One E stepper, unified E axis, two hotends
#define HOTENDS EXTRUDERS
#define E_STEPPERS 1
#define E_MANUAL 1
#define TOOL_E_INDEX 0
#ifndef HOTEND_OFFSET_Z
#define HOTEND_OFFSET_Z { 0 }
...
...
@@ -336,10 +338,12 @@
#elif ENABLED(MIXING_EXTRUDER) // Multi-stepper, unified E axis, one hotend
#define HOTENDS 1
#define E_STEPPERS MIXING_STEPPERS
#define E_MANUAL 1
#define TOOL_E_INDEX 0
#else // One stepper, E axis, and hotend per tool
#define HOTENDS EXTRUDERS
#define E_STEPPERS EXTRUDERS
#define E_MANUAL EXTRUDERS
#define TOOL_E_INDEX current_block->active_extruder
#endif
...
...
...
...
This diff is collapsed.
Click to expand it.
Marlin/ultralcd.cpp
+
17
−
16
View file @
2f761386
...
...
@@ -1316,11 +1316,11 @@ void kill_screen(const char* lcd_msg) {
* to "current_position" after a short delay.
*/
inline
void
manual_move_to_current
(
AxisEnum
axis
#if E
XTRUDERS
> 1
#if E
_MANUAL
> 1
,
int8_t
eindex
=-
1
#endif
)
{
#if E
XTRUDERS
> 1
#if E
_MANUAL
> 1
if
(
axis
==
E_AXIS
)
manual_move_e_index
=
eindex
>=
0
?
eindex
:
active_extruder
;
#endif
manual_move_start_time
=
millis
()
+
(
move_menu_scale
<
0.99
?
0UL
:
250UL
);
// delay for bigger moves
...
...
@@ -1357,9 +1357,9 @@ void kill_screen(const char* lcd_msg) {
static
void
lcd_move_y
()
{
_lcd_move_xyz
(
PSTR
(
MSG_MOVE_Y
),
Y_AXIS
,
sw_endstop_min
[
Y_AXIS
],
sw_endstop_max
[
Y_AXIS
]);
}
#endif
static
void
lcd_move_z
()
{
_lcd_move_xyz
(
PSTR
(
MSG_MOVE_Z
),
Z_AXIS
,
sw_endstop_min
[
Z_AXIS
],
sw_endstop_max
[
Z_AXIS
]);
}
static
void
lcd_move_e
(
#if E_
STEPPERS
> 1
int8_t
eindex
=
-
1
static
void
_
lcd_move_e
(
#if E_
MANUAL
> 1
int8_t
eindex
#endif
)
{
if
(
LCD_CLICKED
)
{
lcd_goto_previous_menu
(
true
);
return
;
}
...
...
@@ -1368,7 +1368,7 @@ void kill_screen(const char* lcd_msg) {
current_position
[
E_AXIS
]
+=
float
((
int32_t
)
encoderPosition
)
*
move_menu_scale
;
encoderPosition
=
0
;
manual_move_to_current
(
E_AXIS
#if E_
STEPPERS
> 1
#if E_
MANUAL
> 1
,
eindex
#endif
);
...
...
@@ -1376,15 +1376,15 @@ void kill_screen(const char* lcd_msg) {
}
if
(
lcdDrawUpdate
)
{
PGM_P
pos_label
;
#if E_
STEPPERS
== 1
#if E_
MANUAL
== 1
pos_label
=
PSTR
(
MSG_MOVE_E
);
#else
switch
(
eindex
)
{
default:
pos_label
=
PSTR
(
MSG_MOVE_E
MSG_MOVE_E1
);
break
;
case
1
:
pos_label
=
PSTR
(
MSG_MOVE_E
MSG_MOVE_E2
);
break
;
#if E_
STEPPERS
> 2
#if E_
MANUAL
> 2
case
2
:
pos_label
=
PSTR
(
MSG_MOVE_E
MSG_MOVE_E3
);
break
;
#if E_
STEPPERS
> 3
#if E_
MANUAL
> 3
case
3
:
pos_label
=
PSTR
(
MSG_MOVE_E
MSG_MOVE_E4
);
break
;
#endif
#endif
...
...
@@ -1394,13 +1394,14 @@ void kill_screen(const char* lcd_msg) {
}
}
#if E_STEPPERS > 1
static
void
lcd_move_e0
()
{
lcd_move_e
(
0
);
}
static
void
lcd_move_e1
()
{
lcd_move_e
(
1
);
}
#if E_STEPPERS > 2
static
void
lcd_move_e2
()
{
lcd_move_e
(
2
);
}
#if E_STEPPERS > 3
static
void
lcd_move_e3
()
{
lcd_move_e
(
3
);
}
static
void
lcd_move_e
()
{
_lcd_move_e
();
}
#if E_MANUAL > 1
static
void
lcd_move_e0
()
{
_lcd_move_e
(
0
);
}
static
void
lcd_move_e1
()
{
_lcd_move_e
(
1
);
}
#if E_MANUAL > 2
static
void
lcd_move_e2
()
{
_lcd_move_e
(
2
);
}
#if E_MANUAL > 3
static
void
lcd_move_e3
()
{
_lcd_move_e
(
3
);
}
#endif
#endif
#endif
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment