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

Wrangle feed rate variables #4319

Merged

Conversation

thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Jul 16, 2016

  • Append _mm_m or _mm_s to various feedrate variables
  • Add macros for scaling, converting feed rates between mm/m and mm/s
  • Use sq macro here and there
  • Add HYPOT macro for speed (over the overflow-safe hypot function)


set_destination_to_current();

if (retracting) {

feedrate = retract_feedrate_mm_s * 60;
feedrate_mm_m = MMS_TO_MMM(retract_feedrate_mm_s);
Copy link
Contributor

@jbrazio jbrazio Jul 16, 2016

Choose a reason for hiding this comment

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

IMO this is an overkill.. if it was a crazy complicated calculation I could understand.
I am not really a macro fanboy ! 😆

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, I'm a macro fanboy.

@thinkyhead thinkyhead force-pushed the rc_feedrates_to_mess_with_you branch 3 times, most recently from 8fde464 to 36e7fc8 Compare July 17, 2016 19:29
@thinkyhead thinkyhead force-pushed the rc_feedrates_to_mess_with_you branch from 36e7fc8 to f38553b Compare July 17, 2016 20:29
@thinkyhead thinkyhead merged commit f242aea into MarlinFirmware:RCBugFix Jul 17, 2016
@thinkyhead thinkyhead deleted the rc_feedrates_to_mess_with_you branch July 17, 2016 21:07
@jbrazio jbrazio modified the milestone: 1.1.0 Jul 18, 2016
@thinkyhead thinkyhead mentioned this pull request Jul 25, 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.

2 participants