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-19 18:46:57 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-19 18:46:57 +0300
commit36d4fd653bee02c286f76280792d63ffeda75b57 (patch)
tree156c8668b39bcc60c87e2f3e891786e9d704ebf9 /src
parentd928e99b525858bffe6d1aa8970fcd70d4cecd6c (diff)
Update move.compensation.meshDeviation when height map loaded from file
Diffstat (limited to 'src')
-rw-r--r--src/Movement/Move.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Movement/Move.cpp b/src/Movement/Move.cpp
index f32f6cc2..fb72c6a2 100644
--- a/src/Movement/Move.cpp
+++ b/src/Movement/Move.cpp
@@ -762,6 +762,8 @@ bool Move::LoadHeightMapFromFile(FileStore *f, const char *fname, const StringRe
{
zShift = 0.0;
}
+ float minError, maxError;
+ (void)heightMap.GetStatistics(latestMeshDeviation, minError, maxError);
reprap.MoveUpdated();
return err;
}
@@ -1163,9 +1165,10 @@ void Move::SetInitialCalibrationDeviation(const Deviation& d) noexcept
reprap.MoveUpdated();
}
+// Set the mesh deviation. Caller must call MoveUpdated() after calling this. We don't do that here because the caller may change Move in other ways first.
void Move::SetLatestMeshDeviation(const Deviation& d) noexcept
{
- latestMeshDeviation = d; reprap.MoveUpdated();
+ latestMeshDeviation = d;
}
const char *Move::GetCompensationTypeString() const noexcept