added some gcode to test with

This commit is contained in:
Simen Svale Skogsrud
2010-01-07 23:14:29 +01:00
parent 65b696f2f9
commit 6ac3b3f2e6
4 changed files with 5356 additions and 7 deletions

View File

@ -91,9 +91,9 @@ void mc_line(double x, double y, double z, float feed_rate, int invert_feed_rate
// Setup ---------------------------------------------------------------------------------------------------
target[X_AXIS] = x*X_STEPS_PER_MM;
target[Y_AXIS] = y*Y_STEPS_PER_MM;
target[Z_AXIS] = z*Z_STEPS_PER_MM;
target[X_AXIS] = round(x*X_STEPS_PER_MM);
target[Y_AXIS] = round(y*Y_STEPS_PER_MM);
target[Z_AXIS] = round(z*Z_STEPS_PER_MM);
// Determine direction and travel magnitude for each axis
for(axis = X_AXIS; axis <= Z_AXIS; axis++) {
step_count[axis] = abs(target[axis] - position[axis]);