motion: Improve legibility of motion::SetPosition
parent
5ba8ba9646
commit
2e32204d17
|
|
@ -176,13 +176,13 @@ public:
|
||||||
/// Set the position of an axis. Should only be called when the queue is empty.
|
/// Set the position of an axis. Should only be called when the queue is empty.
|
||||||
/// @param axis axis affected
|
/// @param axis axis affected
|
||||||
/// @param x position to set
|
/// @param x position to set
|
||||||
void SetPosition(Axis axis, pos_t x)
|
|
||||||
#if !defined(UNITTEST) || defined(UNITTEST_MOTION)
|
#if !defined(UNITTEST) || defined(UNITTEST_MOTION)
|
||||||
{
|
void SetPosition(Axis axis, pos_t x) {
|
||||||
axisData[axis].ctrl.SetPosition(x);
|
axisData[axis].ctrl.SetPosition(x);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
;
|
// Force STUB for testing
|
||||||
|
void SetPosition(Axis axis, pos_t x);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Get current acceleration for the selected axis
|
/// Get current acceleration for the selected axis
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue