C:/usr/src/avr/plotter/scale.c File Reference
#include <inttypes.h>
#include <math.h>
#include <avr/pgmspace.h>
#include <stdio.h>
#include "configs.h"
#include "scale.h"
#include "shvars.h"
Go to the source code of this file.
Function Documentation
Something else that should not be used.
Definition at line 56 of file scale.c.
Initialize translation and scale.
Translation is not implemented.
Definition at line 13 of file scale.c.
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).
- Parameters:
-
| 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:
- STEPSCALE_X
STEPSCALE_Y
Definition at line 48 of file scale.c.