this struct is made for tracking the current state of the movement More...
#include <dda.h>
Data Fields | |
int32_t | x_counter |
counter for total_steps vs this axis | |
int32_t | y_counter |
counter for total_steps vs this axis | |
int32_t | z_counter |
counter for total_steps vs this axis | |
uint32_t | x_steps |
number of steps on X axis | |
uint32_t | y_steps |
number of steps on Y axis | |
uint32_t | z_steps |
number of steps on Z axis |
this struct is made for tracking the current state of the movement
Parts of this struct are initialised only once per reboot, so make sure dda_step() leaves them with a value compatible to begin a new movement at the end of the movement. Other parts are filled in by dda_start().