Skip to content
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

Kinematic and SCARA patches #4859

Merged
merged 18 commits into from
Sep 21, 2016

Conversation

thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Sep 20, 2016

This PR consists of work done in support of MakerArm SCARA that applies generally to Marlin. See individual commits for changes. This PR may be broken up into smaller parts, but posting ahead of time to put it through thorough Travis CI tests.

The main change here is a more universal application of Non-linear Bed Leveling, moving the previous "adjust_delta" functionality into the Planner class. In the near future the bed_level_grid and supporting functions will also be localized in the Planner class. This is an important consolidation.

Other changes include:

  • Replace SCARA with MORGAN_SCARA to differentiate with other SCARA machines
  • Allow a non-square bed leveling grid in the configuration
  • Enable SCARA support in more functions
  • Fix bugs in forward kinematics and getting positions from the steppers

@thinkyhead thinkyhead merged commit e0e10e0 into MarlinFirmware:RCBugFix Sep 21, 2016
@thinkyhead thinkyhead deleted the rc_kinematic_and_scara branch September 21, 2016 06:21
return HYPOT2(dx, dy) <= sq(DELTA_PRINTABLE_RADIUS);
bool good;
#if IS_SCARA
#if MIDDLE_DEAD_ZONE_R > 0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In example_configurations/SCARA/Configuration.h, this became MIDDLE_DEAD_ZONE.

#if IS_SCARA
#if MIDDLE_DEAD_ZONE_R > 0
const float R2 = HYPOT2(dx - SCARA_OFFSET_X, dy - SCARA_OFFSET_Y);
good = (R2 >= sq(float(MIDDLE_DEAD_ZONE_R))) && (R2 <= sq(L1 + L2));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

#define SCARA_LINKAGE_2 150 //mm

// SCARA tower offset (position of Tower relative to bed zero position)
// This needs to be reasonably accurate as it defines the printbed position in the SCARA space.
#define SCARA_OFFSET_X 100 //mm
#define SCARA_OFFSET_Y -56 //mm

// Radius around the center where the arm cannot reach
#define MIDDLE_DEAD_ZONE 0 //mm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Marlin_main.cpp, this became MIDDLE_DEAD_ZONE_R.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MIDDLE_DEAD_ZONE_R is better. Fixed!

#define SCARA_LINKAGE_2 150 //mm

// SCARA tower offset (position of Tower relative to bed zero position)
// This needs to be reasonably accurate as it defines the printbed position in the SCARA space.
#define SCARA_OFFSET_X 100 //mm
#define SCARA_OFFSET_Y -56 //mm

// Radius around the center where the arm cannot reach
#define MIDDLE_DEAD_ZONE 0 //mm

#define THETA_HOMING_OFFSET 0 //calculatated from Calibration Guide and command M360 / M114 see picture in http://reprap.harleystudio.co.za/?page_id=1073
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are THETA_HOMING_OFFSET and PSI_HOMING_OFFSET used in?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess these are placeholders for some future plans never realized.

@thinkyhead thinkyhead mentioned this pull request Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant