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

#include "motori.h"

Go to the source code of this file.


void translate_init ()
void translate_scale ()
void userscale (double fx, double fy, int16_t *x, int16_t *y, double *ox, double *oy)
void userprescale (double absx, double absy, double *ox, double *oy)
 Something that shouldn't be used.
USER_POINT scale_P1P2 ()
 Something else that should not be used.

Function Documentation

USER_POINT scale_P1P2 (  ) 

Something else that should not be used.

Definition at line 56 of file scale.c.

void translate_init (  ) 

Initialize translation and scale.

Translation is not implemented.

Definition at line 13 of file scale.c.

void translate_scale (  ) 

Use IP and SC data to calculate the scale and translation.

Translation is not implemented.

Definition at line 27 of file scale.c.

void userprescale ( double  absx,
double  absy,
double *  ox,
double *  oy 

Something that shouldn't be used.

Definition at line 43 of file scale.c.

void userscale ( double  fx,
double  fy,
int16_t *  x,
int16_t *  y,
double *  ox,
double *  oy 

Transform user coordinates (fx,fy) into plotter coordinates (x,y) according to the transform defined by IP/SC. Then do reverse transform, round and assign resulting values to (ox,oy).

fx user coordinates x
fy user coordinates y
*x (output) absolute stepper x
*y (output) absolute stepper y
*ox (output) corrected fx
*oy (output) corrected fy
See also:


Definition at line 48 of file scale.c.

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