mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
feature to set feedrate
This commit is contained in:
@@ -1,29 +1,25 @@
|
||||
#include <Arduino.h>
|
||||
#include "Pen.h"
|
||||
#include "Stepper.h"
|
||||
#include "Config.h"
|
||||
|
||||
#ifndef GLOBALS_H
|
||||
#define GLOBALS_H
|
||||
|
||||
#define EGG_DIA 45.0
|
||||
#define Y_DEGREES_PER_MM (360 / (PI * EGG_DIA))
|
||||
|
||||
#define X_LIMIT 85.0
|
||||
#define EGG_LENGTH 60.0
|
||||
#define X_DEGREES_PER_MM (X_LIMIT / EGG_LENGTH)
|
||||
|
||||
#define STEPS_PER_REVOLUTION (360/1.8) * 32
|
||||
#define DEF_RPM 2
|
||||
|
||||
Stepper eggStepper(6, 5, STEPS_PER_REVOLUTION, 0, Y_DEGREES_PER_MM);
|
||||
Stepper servoStepper(4, 3, STEPS_PER_REVOLUTION, X_LIMIT,
|
||||
X_DEGREES_PER_MM);
|
||||
Stepper eggStepper(6, 5, STEPS_PER_REVOLUTION, 0, defYDegPerMM);
|
||||
Stepper servoStepper(4, 3, STEPS_PER_REVOLUTION, xLimit,
|
||||
defXDegPerMM);
|
||||
|
||||
Pen pen(7, 120, 180);
|
||||
|
||||
unsigned int eggStepperDelay;
|
||||
unsigned int servoStepperDelay;
|
||||
|
||||
unsigned int eggDia;
|
||||
unsigned int eggLength;
|
||||
|
||||
float eggStepperRPM;
|
||||
float servoStepperRPM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user