Struct SYN_SCurve¶
S-curve trajectory generator state.
#include <syn_scurve.h>
Public Attributes¶
| Type | Name |
|---|---|
| int32_t | a |
| int32_t | a_max |
| int32_t | current_phase |
| int32_t | dir |
| bool | done |
| int32_t | j |
| int32_t | j_max |
| int32_t | p |
| int32_t | phase_ticks |
| int32_t | target_p |
| int32_t | ticks_in_phase |
| int32_t | v |
| int32_t | v_max |
Public Attributes Documentation¶
variable a¶
Current acceleration
variable a_max¶
Maximum acceleration magnitude
variable current_phase¶
Current phase (0-6), 7 = done
variable dir¶
Direction of motion (1 or -1)
variable done¶
True if target reached
variable j¶
Current jerk
variable j_max¶
Maximum jerk magnitude
variable p¶
Current position
variable phase_ticks¶
Ticks to spend in each of the 7 phases
variable target_p¶
Target position
variable ticks_in_phase¶
Ticks spent in current phase
variable v¶
Current velocity
variable v_max¶
Maximum velocity magnitude
The documentation for this class was generated from the following file src/syntropic/util/syn_scurve.h