Welcome! Log In Create A New Profile

Advanced

Proposed improvement: change homing offsets to milimeters

Posted by TTN 
TTN
Proposed improvement: change homing offsets to milimeters
December 03, 2015 09:28PM
Improvement suggestion:

Change:
#define DELTA_X_ENDSTOP_OFFSET_STEPS 0
#define DELTA_Y_ENDSTOP_OFFSET_STEPS 0
#define DELTA_Z_ENDSTOP_OFFSET_STEPS 0
to:

#define DELTA_X_ENDSTOP_OFFSET_STEPS 0.0*AXIS_STEPS_PER_MM
#define DELTA_Y_ENDSTOP_OFFSET_STEPS 0.0*AXIS_STEPS_PER_MM
#define DELTA_Z_ENDSTOP_OFFSET_STEPS 0.0*AXIS_STEPS_PER_MM

unless, of course, floats are an issue.

I'm not too familiar with the C syntax, but I'm assuming we will have to convert the number to an int before using it later in the code.

I can go ahead and open a git pull request, but thought it better to discuss first.

Edited 1 time(s). Last edit at 12/03/2015 09:29PM by TTN.
Re: Proposed improvement: change homing offsets to milimeters
December 04, 2015 07:47AM
We need these values in steps as that is the unit we internally work for this correction. These get set by firmware with G132 S2 command during bed calibration so units should not really matter.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
TTN
Re: Proposed improvement: change homing offsets to milimeters
December 04, 2015 01:40PM
Quote
repetier
.. so units should not really matter.

Yep. Well, until someone like me changes the microstepping rate and gets a head into bed crash spinning smiley sticking its tongue out
Sorry, only registered users may post in this forum.

Click here to login