dda.c: c0_P is only for ACCELERATION_RAMPING
dda.c:65:35: error: 'c0_P' defined but not used [-Werror=unused-const-variable=]
This commit is contained in:
parent
f4d1a6a33b
commit
e976f2bdf3
2
dda.c
2
dda.c
|
|
@ -58,6 +58,7 @@ static const axes_uint32_t PROGMEM maximum_feedrate_P = {
|
||||||
MAXIMUM_FEEDRATE_E
|
MAXIMUM_FEEDRATE_E
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef ACCELERATION_RAMPING
|
||||||
/// \var c0_P
|
/// \var c0_P
|
||||||
/// \brief Initialization constant for the ramping algorithm. Timer cycles for
|
/// \brief Initialization constant for the ramping algorithm. Timer cycles for
|
||||||
/// first step interval.
|
/// first step interval.
|
||||||
|
|
@ -67,6 +68,7 @@ static const axes_uint32_t PROGMEM c0_P = {
|
||||||
(uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_Z * ACCELERATION / 2000.)),
|
(uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_Z * ACCELERATION / 2000.)),
|
||||||
(uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_E * ACCELERATION / 2000.))
|
(uint32_t)((double)F_CPU / SQRT((double)STEPS_PER_M_E * ACCELERATION / 2000.))
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*! Set the direction of the 'n' axis
|
/*! Set the direction of the 'n' axis
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue