Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: threeAxis.h
- Revision:
- 2:5206484275e3
- Parent:
- 1:43d856fad23a
- Child:
- 3:09abcf461dc2
--- a/threeAxis.h Wed Dec 15 01:17:55 2021 +0000
+++ b/threeAxis.h Wed Dec 15 02:10:48 2021 +0000
@@ -2,7 +2,9 @@
public:
threeAxis(PinName xStep, PinName yStep, PinName zStep, PinName xDir, PinName yDir, PinName zDir, PinName xEnable, PinName yEnable, PinName zEnable, float stepRatio, float xBound, float yBound, float zBound, PinName xLimit, PinName yLimit, PinName zLimit);
void goTo(float xVal, float yVal, float zVal);
- //void goToRaw(int xVal, int yVal, int zVal);
+
+ void addToBuffer(float xVal, float yVal, float zVal);
+ void runBuffer();
void stepBackX();
void stepBackY();
@@ -68,4 +70,7 @@
bool defaultZdir;
int wait;
+
+ int bufferIndex;
+ float buffer[][3];
};
\ No newline at end of file