New enable input. Add dc ability. Set only SM2 synchronization. Various to make lathe work

This commit is contained in:
Hakan Bastedt
2024-01-18 14:26:51 +01:00
parent 38825bbaf3
commit 9ab4afabe4
8 changed files with 161 additions and 16 deletions

View File

@@ -14,6 +14,7 @@ public:
volatile uint32_t timerNewCycleTime;
volatile double_t actualPosition;
volatile double_t requestedPosition;
volatile uint8_t enabled;
HardwareTimer *MyTim;
uint16_t stepsPerMM;
static uint32_t sync0CycleTime;
@@ -32,6 +33,7 @@ public:
void handleStepper(void);
void timerCB();
void setScale(int16_t spm);
void enable(uint8_t yes);
};
#endif