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

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

No files matched your search

+2
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