interface to enable or disable acceleration management
This commit is contained in:
@@ -50,6 +50,9 @@ extern struct Block block_buffer[BLOCK_BUFFER_SIZE]; // A ring buffer for motion
|
||||
extern volatile int block_buffer_head; // Index of the next block to be pushed
|
||||
extern volatile int block_buffer_tail; // Index of the block to process now
|
||||
|
||||
// Initialize the motion plan subsystem
|
||||
void mp_init();
|
||||
|
||||
// Add a new linear movement to the buffer. steps_x, _y and _z is the signed, relative motion in
|
||||
// steps. Microseconds specify how many microseconds the move should take to perform. To aid acceleration
|
||||
// calculation the caller must also provide the physical length of the line in millimeters.
|
||||
@@ -57,4 +60,10 @@ extern volatile int block_buffer_tail; // Index of the block to proces
|
||||
// st_buffer_line which also wakes up the stepper subsystem.
|
||||
void mp_buffer_line(int32_t steps_x, int32_t steps_y, int32_t steps_z, uint32_t microseconds, double millimeters);
|
||||
|
||||
// Enables acceleration-management for upcoming blocks
|
||||
void mp_enable_acceleration_management();
|
||||
// Disables acceleration-management for upcoming blocks
|
||||
void mp_disable_acceleration_management();
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user