Skip to content

Commit

Permalink
✨ POLARGRAPH / PEN_UP_DOWN_MENU (MarlinFirmware#25303)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Royer <1464454+i-make-robots@users.noreply.github.com>
  • Loading branch information
i-make-robots and i-make-robots committed Jan 31, 2023
1 parent 5446968 commit 738f0a1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,9 @@
// Enable for Polargraph Kinematics
//#define POLARGRAPH
#if ENABLED(POLARGRAPH)
#define POLARGRAPH_MAX_BELT_LEN 1035.0
#define DEFAULT_SEGMENTS_PER_SECOND 5
#define POLARGRAPH_MAX_BELT_LEN 1035.0 // (mm) Belt length at full extension. Override with M665 H.
#define DEFAULT_SEGMENTS_PER_SECOND 5 // Move segmentation based on duration
#define PEN_UP_DOWN_MENU // Add "Pen Up" and "Pen Down" to the MarlinUI menu
#endif

// @section delta
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/lcd/language/language_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ namespace Language_en {
LSTR MSG_TOUCHMI_SAVE = _UxGT("Save");
LSTR MSG_MANUAL_DEPLOY_TOUCHMI = _UxGT("Deploy TouchMI");
LSTR MSG_MANUAL_DEPLOY = _UxGT("Deploy Z-Probe");
LSTR MSG_MANUAL_PENUP = _UxGT("Pen up");
LSTR MSG_MANUAL_PENDOWN = _UxGT("Pen down");
LSTR MSG_MANUAL_STOW = _UxGT("Stow Z-Probe");
LSTR MSG_HOME_FIRST = _UxGT("Home %s First");
LSTR MSG_ZPROBE_SETTINGS = _UxGT("Probe Settings");
Expand Down
7 changes: 7 additions & 0 deletions Marlin/src/lcd/menu/menu_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,13 @@ void menu_motion() {
#endif

//
// Pen up/down menu
//
#if ENABLED(PEN_UP_DOWN_MENU)
GCODES_ITEM(MSG_MANUAL_PENUP, F("M280 P0 S90"));
GCODES_ITEM(MSG_MANUAL_PENDOWN, F("M280 P0 S50"));
#endif

// Probe Offset Wizard
//
#if ENABLED(PROBE_OFFSET_WIZARD)
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/module/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,8 @@ void restore_feedrate_and_scaling() {
#if BOTH(HAS_HOTEND_OFFSET, DELTA)
// The effector center position will be the target minus the hotend offset.
const xy_pos_t offs = hotend_offset[active_extruder];
#elif ENABLED(POLARGRAPH)
// POLARGRAPH uses draw_area_* below...
#elif ENABLED(POLAR)
// For now, we don't limit POLAR
#else
Expand Down

0 comments on commit 738f0a1

Please sign in to comment.