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>2017-11-09 18:15:55 +0300
committerDavid Crocker <dcrocker@eschertech.com>2017-11-09 18:16:08 +0300
commit2d79e7afdd4a155c71d376de593fcb0731ce8911 (patch)
tree62fb99906c96755aed19ab9f1e489d569d103490 /src/Platform.h
parent90d307da50d49f19e1f746cacc9c938022cc8c7e (diff)
Towards 1.20beta7
String parameters can now be quoted in all G- and M-commands Added partial support for standstill current reduction (M917) M0 and M1 no longe turns anything off or run any macros when in simulation mode
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 436ccf90..84c44edb 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -403,8 +403,8 @@ public:
void DisableDrive(size_t drive);
void DisableAllDrives();
void SetDriversIdle();
- void SetMotorCurrent(size_t drive, float current, bool isPercent);
- float GetMotorCurrent(size_t drive, bool isPercent) const;
+ void SetMotorCurrent(size_t drive, float current, int code);
+ float GetMotorCurrent(size_t drive, int code) const;
void SetIdleCurrentFactor(float f);
float GetIdleCurrentFactor() const
{ return idleCurrentFactor; }
@@ -686,7 +686,7 @@ private:
// DRIVES
- void SetDriverCurrent(size_t driver, float current, bool isPercent);
+ void SetDriverCurrent(size_t driver, float current, int code);
void UpdateMotorCurrent(size_t driver);
void SetDriverDirection(uint8_t driver, bool direction)
pre(driver < DRIVES);
@@ -706,6 +706,9 @@ private:
float pressureAdvance[MaxExtruders];
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
+ float motorStandstillCurrentFraction[DRIVES];
+#endif
AxisDriversConfig axisDrivers[MaxAxes]; // the driver numbers assigned to each axis
uint8_t extruderDrivers[MaxExtruders]; // the driver number assigned to each extruder
uint32_t driveDriverBits[2 * DRIVES]; // the bitmap of driver port bits for each axis or extruder, followed by the raw versions