diff options
author | David Crocker <dcrocker@eschertech.com> | 2018-01-02 22:36:09 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2018-01-02 22:36:22 +0300 |
commit | 1ecf339d585999ff7bad9a5cbf475a18c67a66a1 (patch) | |
tree | 2b1aa550b31e821c8915dbecbef41a5b55cc336a /src/Platform.h | |
parent | ddcc69d950827052079cf6927721e23b41453eb5 (diff) |
Version 1.20.1RC2
Added nonlineear extrusion support (M592)
Show calibration parameters in M592 D# response
Bug fix: don't run stop.g, sleep.g or cancel.g at the end of simulating
a print or cancelling a simulation
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Platform.h b/src/Platform.h index 21fa55aa..7eb03ff0 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -467,6 +467,11 @@ public: uint32_t GetSlowDrivers() const { return slowDrivers; } uint32_t GetSlowDriverClocks() const { return slowDriverStepPulseClocks; } +#if NONLINEAR_EXTRUSION + bool GetExtrusionCoefficients(size_t extruder, float& a, float& b, float& limit) const; + void SetNonlinearExtrusion(size_t extruder, float a, float b, float limit); +#endif + // Z probe void SetZProbeDefaults(); @@ -718,6 +723,9 @@ private: float driveStepsPerUnit[DRIVES]; float instantDvs[DRIVES]; float pressureAdvance[MaxExtruders]; +#if NONLINEAR_EXTRUSION + float nonlinearExtrusionA[MaxExtruders], nonlinearExtrusionB[MaxExtruders], nonlinearExtrusionLimit[MaxExtruders]; +#endif float motorCurrents[DRIVES]; // the normal motor current for each stepper driver float motorCurrentFraction[DRIVES]; // the percentages of normal motor current that each driver is set to #if HAS_SMART_DRIVERS |