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: src/Derivs_Limiter.h
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -517,7 +517,7 @@ class Derivs_Limiter {
517
517
}
518
518
519
519
/**
520
-
* @brief This function changes velLimit so that a move to the specified target position takes the specified time (if possible given acceleration limit) use like setTarget()
520
+
* @brief This function changes velLimit so that a move to the specified target position takes the specified time (if possible given acceleration limit)
521
521
* @note using this function changes the value of velLimit from whatever you set it to when you created the Derivs_Limiter object
522
522
* @param _target: (float) position you'd like to move to
523
523
* @param _time: (float) how long you would like the movement to take
@@ -532,6 +532,29 @@ class Derivs_Limiter {
532
532
return ret;
533
533
}
534
534
535
+
/**
536
+
* @brief This function changes velLimit so that a move to the specified target position takes the specified time if possible given acceleration limit, and if not possible resets the velocity limit to the original value (or _maxVel if not NAN) and goes to the target at that speed instead
537
+
* @note using this function changes the value of velLimit from whatever you set it to when you created the Derivs_Limiter object
538
+
* @param _target: (float) position you'd like to move to
539
+
* @param _time: (float) how long you would like the movement to take
540
+
* @param _maxVel: (float, optional, default=NAN) maximum allowable velocity, if the required velocity exceeds this the function returns false, if NAN the velocity limit set in the constructor or setVelLimit() is used
541
+
* @retval (bool) true if move possible within time given acceleration limit, false if not possible (and move happens with maxVel instead but will not complete in time)
0 commit comments