From 8f3a69b37ed30cc1694cb38432579e64d6f0f2a6 Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Mon, 9 Feb 2009 20:54:03 +0100 Subject: [PATCH] edit --- motion_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motion_control.c b/motion_control.c index 8a88323..410ec0c 100644 --- a/motion_control.c +++ b/motion_control.c @@ -240,7 +240,7 @@ void mc_arc(double theta, double angular_travel, double radius, int axis_1, int // The amount of steppings performed while tracing a half circle is equal to the sum of sides in a // square inscribed in the circle. We use this to estimate the amount of steps as if this arc was a half circle: - uint32_t steps_in_half_circle = round((4*radius_steps)/sqrt(2))); + uint32_t steps_in_half_circle = round((4*radius_steps)/sqrt(2)); // We then calculate the millimeters of travel along the circumference of that same half circle double millimeters_half_circumference = radius*M_PI; // Then we calculate the microseconds between each step as if we will trace the full circle.