You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,6 @@ void loop()
141
141
|`float getCurrentVelocityInMillimetersPerSecond(void)`| return the current velocity as floating point number in millimeters/Second. *Note: make sure you configured the stepper correctly using the `setStepsPerMillimeter` function before calling this function, otherwise the result might be incorrect!*|
142
142
|`void setCurrentPositionInSteps(long currentPositionInSteps)`| set the register for the current position to a specific value e.g. to mark the home position. NOTE: if you called one of the move functions before (and by that setting a target position internally) you might experience that the motor starts to move after calling setCurrentPositionInSteps(currentPositionInSteps) in the case that the value of currentPositionInSteps is different from the target position of the stepper. If this is not intended, you should call setTargetPositionInSteps() with the same value as the setCurrentPositionInSteps() function directly before or after calling setCurrentPositionInSteps |
143
143
|`void setCurrentPositionAsHomeAndStop(void)`| set the current position of the stepper as the home position. This also sets the current position to 0. After performing this step you can always return to the home position by calling `setTargetPoisitionInSteps(0)`(or for blocking calls `moveToPositionInSteps(0)`) |
144
-
|`void setCurrentPositionInSteps(long currentPositionInSteps)`| set the current position counter to a defined value. Can be used to resetting the position counter or setting it to a specific value for calibration etc. Use setCurrentPositionAsHomeAndStop instead if you want to set a real home position value |
145
144
|`long getCurrentPositionInSteps()`| return the current position of the stepper in steps (absolute value, could also be negative if no proper homing has been performed before) |
146
145
|`bool moveToHomeInSteps(signed char directionTowardHome, float speedInStepsPerSecond, long maxDistanceToMoveInSteps, int homeSwitchPin)`|*Blocking call:* start movement in the given direction with a maximum number of steps or until the IO Pin defined by homeSwitchPin is going low (active low switch is required, since the library will configure this pin as input with internal pull-up in the current version). This is a blocking function, it will not return before the final position has been reached.|
147
146
|`void moveRelativeInSteps(long distanceToMoveInSteps)`|*Blocking call:* start movement to the given relative position from current position. This is a blocking function, it will not return before the final position has been reached. |
@@ -156,3 +155,5 @@ void loop()
156
155
|`bool isMovingTowardsHome(void)`| true if the stepper is still on the way to the home position |
157
156
|`static void taskRunner(void *parameter)`| this is the function that is used as the service, you do not need to call this manually ever |
158
157
|`getTaskStackHighWaterMark(void)`| this is used for debugging to see if the allocated stack trace of the task / service function is large enough. You can ignore this function |
158
+
|`void startJogging(signed char direction)`| start jogging (continuous movement without a fixed target position). Uses the currently set speed and acceleration settings. To stop the motion call the stopJogging function. Will also stop when the external limit switch has been triggered using setLimitSwitchActive() or when the emergencyStop function is triggered. Warning: This function requires either a limit switch to be configured or manual trigger of the stopJogging/etTargetPositionToStop or emergencyStop function, otherwise the motor will never stop jogging (which could of course also be an intended behavior) |
159
+
|`void stopJogging()`| Stop jogging, basically an alias function for setTargetPositionToStop() |
* start jogging in the direction of home (use setDirectionToHome() to set the proper direction) until the limit switch is hit, then set the position as home
813
804
* Warning: This function requires a limit switch to be configured otherwise the motor will never stop jogging.
@@ -886,7 +877,7 @@ void ESP_FlexyStepper::registerEmergencyStopReleasedCallback(callbackFunction em
886
877
* uses the currently set speed and acceleration settings
887
878
* to stop the motion call the stopJogging function.
888
879
* Will also stop when the external limit switch has been triggered using setLimitSwitchActive() or when the emergencyStop function is triggered
889
-
* Warning: This function requires either a limit switch to be configured otherwise or manual trigger of the stopJogging/setTargetPositionToStop or emergencyStop function, the motor will never stop jogging
880
+
* Warning: This function requires either a limit switch to be configured or manual trigger of the stopJogging/setTargetPositionToStop or emergencyStop function, otherwise the motor will never stop jogging (which could of course also be an intended behavior)
0 commit comments