Motion Control Updates
This commit is contained in:
parent
471d018bfe
commit
cc1bdaa82f
5 changed files with 132 additions and 41 deletions
12
plotter.h
12
plotter.h
|
|
@ -10,6 +10,7 @@
|
|||
#include "writepin.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "serial.h"
|
||||
|
||||
class Plotter
|
||||
{
|
||||
|
|
@ -17,11 +18,20 @@ private:
|
|||
Pwm16b _pwm;
|
||||
Point currentPos = {0, 0};
|
||||
|
||||
uint16_t prevDiamondAngle = 60000;
|
||||
uint16_t prevSteps = 10;
|
||||
|
||||
volatile unsigned char *_penPort;
|
||||
char _penPin;
|
||||
|
||||
|
||||
|
||||
Serial* _serial;
|
||||
|
||||
uint16_t diamondAngle(int16_t y, int16_t x);
|
||||
|
||||
public:
|
||||
Plotter(volatile unsigned char *penPort, const char penPin);
|
||||
Plotter(volatile unsigned char *penPort, const char penPin, Serial* serial);
|
||||
void demo();
|
||||
void basicposition();
|
||||
void pd();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue