Data Structures | |
struct | a_trajtrap |
instance structure for trapezoidal velocity trajectory More... | |
Typedefs | |
typedef struct a_trajtrap | a_trajtrap |
Functions | |
a_real | a_trajtrap_gen (a_trajtrap *ctx, a_real vm, a_real ac, a_real de, a_real p0, a_real p1, a_real v0, a_real v1) |
generate for trapezoidal velocity trajectory | |
a_real | a_trajtrap_pos (a_trajtrap const *ctx, a_real x) |
compute position for trapezoidal velocity trajectory | |
a_real | a_trajtrap_vel (a_trajtrap const *ctx, a_real x) |
compute velocity for trapezoidal velocity trajectory | |
a_real | a_trajtrap_acc (a_trajtrap const *ctx, a_real x) |
compute acceleration for trapezoidal velocity trajectory | |
a_real a_trajtrap_acc | ( | a_trajtrap const * | ctx, |
a_real | x ) |
compute acceleration for trapezoidal velocity trajectory
[in] | ctx | points to an instance of trapezoidal velocity trajectory |
[in] | x | difference between current time and initial time |
a_real a_trajtrap_gen | ( | a_trajtrap * | ctx, |
a_real | vm, | ||
a_real | ac, | ||
a_real | de, | ||
a_real | p0, | ||
a_real | p1, | ||
a_real | v0, | ||
a_real | v1 ) |
generate for trapezoidal velocity trajectory
Assuming that there is no constant velocity phase, but only acceleration and deceleration phases, the maximum velocity in the motion is
Solving for the maximum velocity is
[in,out] | ctx | points to an instance of trapezoidal velocity trajectory |
[in] | vm | defines the maximum velocity during system operation |
[in] | ac | defines the acceleration before constant velocity |
[in] | de | defines the acceleration after constant velocity |
[in] | p0 | defines the initial position |
[in] | p1 | defines the final position |
[in] | v0 | defines the initial velocity |
[in] | v1 | defines the final velocity |
a_real a_trajtrap_pos | ( | a_trajtrap const * | ctx, |
a_real | x ) |
compute position for trapezoidal velocity trajectory
[in] | ctx | points to an instance of trapezoidal velocity trajectory |
[in] | x | difference between current time and initial time |
a_real a_trajtrap_vel | ( | a_trajtrap const * | ctx, |
a_real | x ) |
compute velocity for trapezoidal velocity trajectory
[in] | ctx | points to an instance of trapezoidal velocity trajectory |
[in] | x | difference between current time and initial time |