Prusa-Firmware-MMU/tests/unit/logic/stubs/stub_motion.h

26 lines
427 B
C++

#pragma once
#include <stdint.h>
#include <deque>
namespace modules {
namespace motion {
struct AxisSim {
pos_t pos;
bool enabled;
bool homed;
bool stallGuard;
int16_t sg_thrs;
std::deque<pos_t> plannedMoves;
};
extern AxisSim axes[3];
void ReinitMotion();
bool PulleyEnabled();
void TriggerStallGuard(Axis axis);
pos_t AxisNearestTargetPos(Axis axis);
} // namespace motion
} // namespace modules