dda_maths.h: Add comment on units of C0.

This commit is contained in:
David Forrest 2014-05-20 10:29:08 -04:00 committed by Markus Hitter
parent f3666fc43f
commit 2496a95c6f
1 changed files with 1 additions and 1 deletions

View File

@ -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 */