Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-01-02 23:23:03 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-01-02 23:23:03 +0300
commit828c84cc9dbe7e8eeed979dacb951c76a82c3178 (patch)
tree577650634f6d630c6a31fc4be990f6954dcd6500 /src/Platform.h
parent0ba75611557cdf96f450a31bc6cd73f855523813 (diff)
Use CanMovementLinear message instead of CanMovement message for 3 Mini
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 778137db..e0958a6e 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -475,6 +475,7 @@ public:
float AxisMinimum(size_t axis) const noexcept;
void SetAxisMinimum(size_t axis, float value, bool byProbing) noexcept;
float AxisTotalLength(size_t axis) const noexcept;
+
float GetPressureAdvance(size_t extruder) const noexcept;
GCodeResult SetPressureAdvance(float advance, GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException);
@@ -637,6 +638,8 @@ public:
GCodeResult EutSetMotorCurrents(const CanMessageMultipleDrivesRequest<float>& msg, size_t dataLength, const StringRef& reply) noexcept;
GCodeResult EutSetStepsPerMmAndMicrostepping(const CanMessageMultipleDrivesRequest<StepsPerUnitAndMicrostepping>& msg, size_t dataLength, const StringRef& reply) noexcept;
GCodeResult EutHandleSetDriverStates(const CanMessageMultipleDrivesRequest<DriverStateControl>& msg, const StringRef& reply) noexcept;
+ float EutGetRemotePressureAdvance(size_t driver) const noexcept;
+ GCodeResult EutSetRemotePressureAdvance(const CanMessageMultipleDrivesRequest<float>& msg, size_t dataLength, const StringRef& reply) noexcept;
#endif
#if VARIABLE_NUM_DRIVERS
@@ -664,6 +667,10 @@ private:
void IterateLocalDrivers(size_t axisOrExtruder, std::function<void(uint8_t) /*noexcept*/ > func) noexcept { IterateDrivers(axisOrExtruder, func); }
#endif
+#if SUPPORT_REMOTE_COMMANDS
+ float remotePressureAdvance[NumDirectDrivers];
+#endif
+
#if HAS_SMART_DRIVERS
void ReportDrivers(MessageType mt, DriversBitmap& whichDrivers, const char* text, bool& reported) noexcept;
#endif
@@ -761,19 +768,7 @@ private:
DriversBitmap stalledDrivers, stalledDriversToLog, stalledDriversToPause, stalledDriversToRehome;
#endif
-#if defined(DUET_06_085)
- // Digipots
- MCP4461 mcpDuet;
- MCP4461 mcpExpansion;
- uint8_t potWipes[8]; // we have only 8 digipots, on the Duet 0.8.5 we use the DAC for the 9th
- float senseResistor;
- float maxStepperDigipotVoltage;
- float stepperDacVoltageRange, stepperDacVoltageOffset;
-#elif defined(__ALLIGATOR__)
- Pin spiDacCS[MaxSpiDac];
- DAC084S085 dacAlligator;
- DAC084S085 dacPiggy;
-#elif defined(__LPC17xx__)
+#if defined(__LPC17xx__)
MCP4461 mcp4451;// works for 5561 (only volatile setting commands)
#endif