C:/usr/src/avr/plotter/arc.h File Reference

#include <inttypes.h>

Go to the source code of this file.

Functions

int16_t arc_init ()
uint8_t arc_next (int16_t *x, int16_t *y)


Function Documentation

int16_t arc_init (  ) 

Initialize the arc based on current location and scratchpad data.

See also:
numpad

user_loc

Returns:
0 if the arc is degenerate (0 degrees or R=0)

Definition at line 12 of file arc.c.

uint8_t arc_next ( int16_t *  x,
int16_t *  y 
)

Calculate the next chord.

Parameters:
x next x in absolute stepper coordinates
y next y in absolute stepper coordinates
Returns:
0 if this is the last chord

Definition at line 33 of file arc.c.


Generated on Sat Jul 4 05:27:39 2009 for motori by  doxygen 1.5.9