From 49ca861dc03b0782808bea2fb7e6c91289f6f5c0 Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Wed, 3 Mar 2010 01:39:44 +0100 Subject: [PATCH] added segmented arc support with configurable segmentation --- config.h | 3 ++- gcode.c | 3 +++ motion_control.c | 20 +++++++++++++++++++- stepper.c | 2 ++ stepper.h | 3 ++- 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 1bbc7ea..decf61d 100644 --- a/config.h +++ b/config.h @@ -50,7 +50,6 @@ #define Y_DIRECTION_BIT 4 #define Z_DIRECTION_BIT 5 - #define LIMIT_DDR DDRD #define LIMIT_PORT PORTD #define X_LIMIT_BIT 3 @@ -65,6 +64,8 @@ #define SPINDLE_DIRECTION_PORT PORTD #define SPINDLE_DIRECTION_BIT 7 +#define MM_PER_ARC_SEGMENT 0.1 + #define BAUD_RATE 9600 #define STEP_MASK ((1<