added precision mode
This commit is contained in:
parent
745d009acc
commit
b49d9411d3
3 changed files with 92 additions and 33 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include "pwm.h"
|
||||
#include "writepin.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdlib.h>
|
||||
#include "serial.h"
|
||||
|
||||
class Plotter
|
||||
|
|
@ -26,6 +26,8 @@ private:
|
|||
|
||||
Serial* _serial;
|
||||
|
||||
bool highPrecision=false;
|
||||
|
||||
uint16_t diamondAngle(int16_t y, int16_t x);
|
||||
uint16_t calculateDelayTime(uint16_t currentDiamondAngle, uint16_t prevDiamondAngle, uint16_t prevSteps);
|
||||
|
||||
|
|
@ -36,10 +38,10 @@ public:
|
|||
void basicposition();
|
||||
void pd();
|
||||
void pu();
|
||||
void setHighPrecision(bool in);
|
||||
void moveto(Point *pt);
|
||||
void moveto(uint16_t nx,uint16_t ny);
|
||||
void moveRelative(int32_t deltaX, int32_t deltaY);
|
||||
void moveRelative(Point *pt);
|
||||
Point getCurrentPos();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue