From 2496a95c6f07280b1501a48b3b50b32799fc9f8d Mon Sep 17 00:00:00 2001 From: David Forrest Date: Tue, 20 May 2014 10:29:08 -0400 Subject: [PATCH] dda_maths.h: Add comment on units of C0. --- dda_maths.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dda_maths.h b/dda_maths.h index 130fd30..4709c53 100644 --- a/dda_maths.h +++ b/dda_maths.h @@ -56,7 +56,7 @@ uint32_t acc_ramp_len(uint32_t feedrate, uint32_t steps_per_m); // For X axis only, should become obsolete: #define ACCELERATE_RAMP_LEN(speed) (((speed)*(speed)) / (uint32_t)((7200000.0f * ACCELERATION) / (float)STEPS_PER_M_X)) -// Initialization constant for the ramping algorithm. +// Initialization constant for the ramping algorithm. Timer cycles for first step interval. #define C0 (((uint32_t)((double)F_CPU / sqrt((double)(STEPS_PER_M_X * ACCELERATION / 2000.)))) << 8) #endif /* _DDA_MATHS_H */