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:
Diffstat (limited to 'src/Movement/BedProbing/Grid.h')
-rw-r--r--src/Movement/BedProbing/Grid.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/Movement/BedProbing/Grid.h b/src/Movement/BedProbing/Grid.h
index b7366d32..cd8bd857 100644
--- a/src/Movement/BedProbing/Grid.h
+++ b/src/Movement/BedProbing/Grid.h
@@ -79,24 +79,15 @@ public:
float GetInterpolatedHeightError(float axis0, float axis1) const noexcept; // Compute the interpolated height error at the specified point
void ClearGridHeights() noexcept; // Clear all grid height corrections
void SetGridHeight(size_t axis0Index, size_t axis1Index, float height) noexcept; // Set the height of a grid point
- void SetGridHeight(size_t index, float height) noexcept; // Set the height of a grid point
-#if HAS_MASS_STORAGE
+#if HAS_MASS_STORAGE || HAS_SBC_INTERFACE
bool SaveToFile(FileStore *f, const char *fname, float zOffset) noexcept // Save the grid to file returning true if an error occurred
pre(IsValid());
bool LoadFromFile(FileStore *f, const char *fname, const StringRef& r) noexcept; // Load the grid from file returning true if an error occurred
-#endif
-#if HAS_MASS_STORAGE || HAS_SBC_INTERFACE
const char *GetFileName() const noexcept { return fileName.c_str(); }
#endif
-#if HAS_SBC_INTERFACE
- void SetFileName(const char *name) noexcept; // Update the filename
- void SaveToArray(float *array, float zOffset) const noexcept // Save the grid Z coordinates to an array
- pre(IsValid());
-#endif
-
unsigned int GetMinimumSegments(float deltaAxis0, float deltaAxis1) const noexcept; // Return the minimum number of segments for a move by this X or Y amount
bool UseHeightMap(bool b) noexcept;
@@ -118,6 +109,7 @@ private:
bool useMap; // True to do bed compensation
uint32_t GetMapIndex(uint32_t axis0Index, uint32_t axis1Index) const noexcept { return (axis1Index * def.NumAxisPoints(0)) + axis0Index; }
+ void SetGridHeight(size_t index, float height) noexcept; // Set the height of a grid point
float InterpolateAxis0Axis1(uint32_t axis0Index, uint32_t axis1Index, float axis0Frac, float axis1Frac) const noexcept;
};