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
1a5a5d6b
Commit
1a5a5d6b
authored
9 years ago
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Servo leveling
parent
0b6f1b8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
Conditionals.h
MarlinKimbra/Conditionals.h
+6
-0
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+7
-7
language_an.h
MarlinKimbra/language_an.h
+1
-1
No files found.
MarlinKimbra/Conditionals.h
View file @
1a5a5d6b
...
...
@@ -318,6 +318,12 @@
#define MAX_PROBE_Y (min(Y_MAX_POS, Y_MAX_POS + Y_PROBE_OFFSET_FROM_EXTRUDER))
#endif
/**
* Servo Leveling
*/
#define SERVO_LEVELING (NUM_SERVOS > 0 && defined(ENABLE_AUTO_BED_LEVELING))
#define SERVO_LEVELING_DELAY (SERVO_LEVELING && PROBE_SERVO_DEACTIVATION_DELAY > 0)
/**
* MAX_STEP_FREQUENCY differs for TOSHIBA
*/
...
...
This diff is collapsed.
Click to expand it.
MarlinKimbra/Marlin_main.cpp
View file @
1a5a5d6b
...
...
@@ -28,8 +28,6 @@
#endif
#endif // ENABLE_AUTO_BED_LEVELING
#define SERVO_LEVELING (defined(ENABLE_AUTO_BED_LEVELING) && PROBE_SERVO_DEACTIVATION_DELAY > 0)
#include "ultralcd.h"
#include "planner.h"
...
...
@@ -233,7 +231,6 @@ const char errormagic[] PROGMEM = "Error:";
const
char
echomagic
[]
PROGMEM
=
"echo:"
;
const
char
axis_codes
[
NUM_AXIS
]
=
{
'X'
,
'Y'
,
'Z'
,
'E'
};
static
bool
home_all_axis
=
true
;
static
float
offset
[
3
]
=
{
0
};
static
bool
relative_mode
=
false
;
//Determines Absolute or Relative Coordinates
static
int
bufindr
=
0
;
...
...
@@ -363,6 +360,9 @@ bool target_direction;
static
float
bed_level_c
=
20
;
//used for inital bed probe safe distance (to avoid crashing into bed)
static
float
bed_level_ox
,
bed_level_oy
,
bed_level_oz
;
static
int
loopcount
;
static
bool
home_all_axis
=
true
;
#else
static
bool
home_all_axis
=
true
;
#endif // DELTA
#ifdef SCARA
...
...
@@ -656,7 +656,7 @@ void servo_init()
servos
[
servo_endstops
[
i
]].
write
(
servo_endstop_angles
[
i
*
2
+
1
]);
#endif //NUM_SERVOS
#if SERVO_LEVELING
#if SERVO_LEVELING
_DELAY
delay
(
PROBE_SERVO_DEACTIVATION_DELAY
);
servos
[
servo_endstops
[
Z_AXIS
]].
detach
();
#endif
...
...
@@ -1287,7 +1287,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
servos
[
servo_endstops
[
Z_AXIS
]].
attach
(
0
);
#endif
servos
[
servo_endstops
[
Z_AXIS
]].
write
(
servo_endstop_angles
[
Z_AXIS
*
2
]);
#if SERVO_LEVELING
#if SERVO_LEVELING
_DELAY
delay
(
PROBE_SERVO_DEACTIVATION_DELAY
);
servos
[
servo_endstops
[
Z_AXIS
]].
detach
();
#endif
...
...
@@ -5123,7 +5123,7 @@ inline void gcode_M303() {
*/
inline
void
gcode_M400
()
{
st_synchronize
();
}
#if
defined(ENABLE_AUTO_BED_LEVELING) && defined(SERVO_ENDSTOPS) && (NUM_SERVOS > 0) && not defined(Z_PROBE_SLED)
#if
SERVO_LEVELING
/**
* M401: Engage Z Servo endstop if available
...
...
@@ -6172,7 +6172,7 @@ void process_commands() {
case
400
:
// M400 finish all moves
gcode_M400
();
break
;
#if
defined(ENABLE_AUTO_BED_LEVELING) && (defined(SERVO_ENDSTOPS) || defined(Z_PROBE_ALLEN_KEY)) && not defined(Z_PROBE_SLED)
#if
SERVO_LEVELING
case
401
:
gcode_M401
();
break
;
case
402
:
...
...
This diff is collapsed.
Click to expand it.
MarlinKimbra/language_an.h
View file @
1a5a5d6b
...
...
@@ -95,7 +95,7 @@
#define MSG_TEMPERATURE "Temperatura"
#define MSG_MOTION "Movimiento"
#define MSG_VOLUMETRIC "Filament"
#define MSG_VOLUMETRIC_ENABLED "E in mm
4
"
#define MSG_VOLUMETRIC_ENABLED "E in mm
3
"
#define MSG_FILAMENT_SIZE_EXTRUDER "Fil. Dia."
#define MSG_CONTRAST "Contrast"
#define MSG_STORE_EPROM "Alzar Memoria"
...
...
This diff is collapsed.
Click to expand it.
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