DDA Struct Reference

this is a digital differential analyser data struct More...

#include <dda.h>

Data Fields

TARGET endpoint
 this is where we should finish
union {
   struct {
      uint8_t   nullmove:1
 bool: no axes move, maybe we wait for temperatures or change speed
      uint8_t   live:1
 bool: this DDA is running and still has steps to do
      uint8_t   x_direction:1
 direction flag for X axis
      uint8_t   y_direction:1
 direction flag for Y axis
      uint8_t   z_direction:1
 direction flag for Z axis
   } 
   uint8_t   allflags
 used for clearing all flags
}; 
uint32_t x_delta
 number of steps on X axis
uint32_t y_delta
 number of steps on Y axis
uint32_t z_delta
 number of steps on Z axis
uint32_t total_steps
 total number of steps: set to $\max(\Delta x, \Delta y, \Delta z, \Delta e)$
uint32_t c
 time until next step, 24.8 fixed point
uint8_t endstop_check
 Endstop homing.
uint8_t endstop_stop_cond
 Endstop condition on which to stop motion: 0=Stop on detrigger, 1=Stop on trigger.

Detailed Description

this is a digital differential analyser data struct

This struct holds all the details of an individual multi-axis move, including pre-calculated acceleration data. This struct is filled in by dda_create(), called from enqueue(), called mostly from gcode_process() and from a few other places too (eg


Field Documentation

Endstop homing.

Do we need to check endstops? 0x1=Check X, 0x2=Check Y, 0x4=Check Z

Referenced by dda_step().


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Defines
Generated on Mon Jul 30 16:33:59 2012 for Teacup by  doxygen 1.6.3