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
path: root/src
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-02-11 19:32:25 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-11 19:32:25 +0300
commitaa5c62260d29c150c17c7400ad8b567d51dc2bac (patch)
tree548b924bb90cc940ec1ddc829a4648fba3b5d5f1 /src
parent2f5da09e7dda9b8c95fffb572ce9a2c202b06673 (diff)
Report extrusion and speed factors to 3 sig figs to avoid rounding
e.g. if you set them to 108% then DWC and PanelDue rounded them to 110%
Diffstat (limited to 'src')
-rw-r--r--src/Movement/Move.cpp2
-rw-r--r--src/Platform/Platform.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Movement/Move.cpp b/src/Movement/Move.cpp
index f32f6cc2..b0148e35 100644
--- a/src/Movement/Move.cpp
+++ b/src/Movement/Move.cpp
@@ -111,7 +111,7 @@ constexpr ObjectModelTableEntry Move::objectModelTable[] =
{ "rotation", OBJECT_MODEL_FUNC(self, 44), ObjectModelEntryFlags::none },
#endif
{ "shaping", OBJECT_MODEL_FUNC(&self->axisShaper, 0), ObjectModelEntryFlags::none },
- { "speedFactor", OBJECT_MODEL_FUNC_NOSELF(reprap.GetGCodes().GetSpeedFactor(), 2), ObjectModelEntryFlags::none },
+ { "speedFactor", OBJECT_MODEL_FUNC_NOSELF(reprap.GetGCodes().GetSpeedFactor(), 3), ObjectModelEntryFlags::none },
{ "travelAcceleration", OBJECT_MODEL_FUNC(InverseConvertAcceleration(self->maxTravelAcceleration), 1), ObjectModelEntryFlags::none },
{ "virtualEPos", OBJECT_MODEL_FUNC_NOSELF(reprap.GetGCodes().GetVirtualExtruderPosition(), 5), ObjectModelEntryFlags::live },
{ "workplaceNumber", OBJECT_MODEL_FUNC_NOSELF((int32_t)reprap.GetGCodes().GetWorkplaceCoordinateSystemNumber() - 1), ObjectModelEntryFlags::none },
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 7f1ecc1b..a66077dc 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -296,7 +296,7 @@ constexpr ObjectModelTableEntry Platform::objectModelTable[] =
{ "acceleration", OBJECT_MODEL_FUNC(InverseConvertAcceleration(self->Acceleration(ExtruderToLogicalDrive(context.GetLastIndex()))), 1), ObjectModelEntryFlags::none },
{ "current", OBJECT_MODEL_FUNC((int32_t)(self->GetMotorCurrent(ExtruderToLogicalDrive(context.GetLastIndex()), 906))), ObjectModelEntryFlags::none },
{ "driver", OBJECT_MODEL_FUNC(self->extruderDrivers[context.GetLastIndex()]), ObjectModelEntryFlags::none },
- { "factor", OBJECT_MODEL_FUNC_NOSELF(reprap.GetGCodes().GetExtrusionFactor(context.GetLastIndex()), 2), ObjectModelEntryFlags::none },
+ { "factor", OBJECT_MODEL_FUNC_NOSELF(reprap.GetGCodes().GetExtrusionFactor(context.GetLastIndex()), 3), ObjectModelEntryFlags::none },
{ "filament", OBJECT_MODEL_FUNC_NOSELF(GetFilamentName(context.GetLastIndex())), ObjectModelEntryFlags::none },
{ "jerk", OBJECT_MODEL_FUNC(InverseConvertSpeedToMmPerMin(self->GetInstantDv(ExtruderToLogicalDrive(context.GetLastIndex()))), 1), ObjectModelEntryFlags::none },
{ "microstepping", OBJECT_MODEL_FUNC(self, 8), ObjectModelEntryFlags::none },