diff options
Diffstat (limited to 'src/Movement/DDA.h')
-rw-r--r-- | src/Movement/DDA.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Movement/DDA.h b/src/Movement/DDA.h index c8b749c9..e7f297bb 100644 --- a/src/Movement/DDA.h +++ b/src/Movement/DDA.h @@ -53,7 +53,7 @@ public: void SetDriveCoordinate(int32_t a, size_t drive); // Force an end point void SetFeedRate(float rate) { requestedSpeed = rate; } float GetEndCoordinate(size_t drive, bool disableDeltaMapping); - bool FetchEndPosition(volatile int32_t ep[DRIVES], volatile float endCoords[AXES]); + bool FetchEndPosition(volatile int32_t ep[DRIVES], volatile float endCoords[MAX_AXES]); void SetPositions(const float move[], size_t numDrives); // Force the endpoints to be these FilePosition GetFilePosition() const { return filePos; } float GetRequestedSpeed() const { return requestedSpeed; } @@ -116,7 +116,7 @@ private: FilePosition filePos; // The position in the SD card file after this move was read, or zero if not read fro SD card int32_t endPoint[DRIVES]; // Machine coordinates of the endpoint - float endCoordinates[AXES]; // The Cartesian coordinates at the end of the move + float endCoordinates[MAX_AXES]; // The Cartesian coordinates at the end of the move float directionVector[DRIVES]; // The normalised direction vector - first 3 are XYZ Cartesian coordinates even on a delta float totalDistance; // How long is the move in hypercuboid space float acceleration; // The acceleration to use |