cleanup and removing StepGen from active code

This commit is contained in:
Hakan Bastedt
2024-02-08 21:33:31 +01:00
parent fe3de876fa
commit d0433b29cf
2 changed files with 4 additions and 39 deletions

View File

@@ -10,19 +10,14 @@ private:
volatile int32_t nSteps;
volatile uint32_t timerPulseSteps;
volatile float Tstart;
volatile float Tstop;
volatile float Tstep;
const float maxAllowedFrequency = 100000; // 100 kHz for now
HardwareTimer *pulseTimer;
uint32_t pulseTimerChan;
HardwareTimer *startTimer; // 10,11,13,14
uint8_t dirPin;
PinName stepPin;
const uint32_t maxFreq = 100000;
const float Tjitter = 50.0; // Time unit is microseconds
uint32_t err = 0;
public:
volatile double_t commandedPosition; // End position when this cycle is completed
volatile int32_t commandedStepPosition; // End step position when this cycle is completed