diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-06-13 01:21:27 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-06-13 01:21:27 +0300 |
commit | a7fde45b618c76c03516696d670dd665282873da (patch) | |
tree | 250ec090839017aeac12e7cefa9d1f19dea35835 /src/Movement/DDA.h | |
parent | 92b7d130d974b6b62780e68d32717a7c6567db6e (diff) |
Various
Support layer counting in GCode files generated by SuperSlicer
When reporting a bad command, display any non-printing characters in hex
Support measuring fan RPMs down to 160 instead of down to 320
After turning a remote heater on, if it was previously off then set its
status to 'heating' pending receiving updated status for it, to make
sure that M116 waits for it
Diffstat (limited to 'src/Movement/DDA.h')
-rw-r--r-- | src/Movement/DDA.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Movement/DDA.h b/src/Movement/DDA.h index 22c65780..3db44ded 100644 --- a/src/Movement/DDA.h +++ b/src/Movement/DDA.h @@ -113,6 +113,7 @@ public: #if SUPPORT_LASER || SUPPORT_IOBITS LaserPwmOrIoBits GetLaserPwmOrIoBits() const noexcept { return laserPwmOrIoBits; } + bool ControlLaser() const noexcept { return flags.controlLaser; } #endif #if SUPPORT_LASER @@ -135,6 +136,8 @@ public: void DebugPrint(const char *tag) const noexcept; // print the DDA only void DebugPrintAll(const char *tag) const noexcept; // print the DDA and active DMs + static void PrintMoves() noexcept; // print saved moves for debugging + // Note on the following constant: // If we calculate the step interval on every clock, we reach a point where the calculation time exceeds the step interval. // The worst case is pure Z movement on a delta. On a Mini Kossel with 80 steps/mm with this firmware running on a Duet (84MHx SAM3X8 processor), @@ -163,7 +166,8 @@ public: static constexpr uint32_t WakeupTime = (100 * StepTimer::StepClockRate)/1000000; // stop resting 100us before the move is due to end static constexpr uint32_t HiccupIncrement = HiccupTime/2; // how much we increase the hiccup time by on each attempt - static void PrintMoves() noexcept; // print saved moves for debugging + static constexpr uint32_t UsualMinimumPreparedTime = StepTimer::StepClockRate/10; // 100ms + static constexpr uint32_t AbsoluteMinimumPreparedTime = StepTimer::StepClockRate/20; // 50ms #if DDA_LOG_PROBE_CHANGES static const size_t MaxLoggedProbePositions = 40; @@ -171,10 +175,6 @@ public: static int32_t loggedProbePositions[XYZ_AXES * MaxLoggedProbePositions]; #endif -#if SUPPORT_LASER || SUPPORT_IOBITS - bool ControlLaser() const noexcept { return flags.controlLaser; } -#endif - static uint32_t lastStepLowTime; // when we last completed a step pulse to a slow driver static uint32_t lastDirChangeTime; // when we last change the DIR signal to a slow driver |