summaryrefslogtreecommitdiff
path: root/trunk/reprap/miscellaneous/3-axis-DDA/README
blob: edf282310426f40eefcd047c50fe9dab146142b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
RepRap
------

The Replicating Rapid Prototyper Project

This is the C program for the PIC that controls the cartesian X, Y, Z
movement.

It uses a DDA to drive three steppers together to make a line in space
in exactly the same way that Bressenham's algorithm draws a straight
line in pixels on a graphics screen, except that it works in 3D rather
than 2.

The line is swapped about so it is always in the first octant (x > 0,
y > 0, z > 0) and so that the X movement is bigger than the Y and the
Z.  This is recorded in the bits in negswap, which is then used to
unravel this and to plot the line in the right place in space.

Version 1.  16 December 2005


http://reprap.org


This software uses SDCC (http://sdcc.sourceforge.net/)

Type "make" to make the file cartesian.hex, then download that to the
PIC using, for example, gpicp
(http://home.pacbell.net/theposts/picmicro/).

"make clean" will erase derived files.

If make fails and you need a quick copy of cartesian.hex, the original one is
in the directory Saved-hex-file.