Skip to content

Struct SYN_SCurve

ClassList > 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

int32_t SYN_SCurve::a;

Current acceleration


variable a_max

int32_t SYN_SCurve::a_max;

Maximum acceleration magnitude


variable current_phase

int32_t SYN_SCurve::current_phase;

Current phase (0-6), 7 = done


variable dir

int32_t SYN_SCurve::dir;

Direction of motion (1 or -1)


variable done

bool SYN_SCurve::done;

True if target reached


variable j

int32_t SYN_SCurve::j;

Current jerk


variable j_max

int32_t SYN_SCurve::j_max;

Maximum jerk magnitude


variable p

int32_t SYN_SCurve::p;

Current position


variable phase_ticks

int32_t SYN_SCurve::phase_ticks[7];

Ticks to spend in each of the 7 phases


variable target_p

int32_t SYN_SCurve::target_p;

Target position


variable ticks_in_phase

int32_t SYN_SCurve::ticks_in_phase;

Ticks spent in current phase


variable v

int32_t SYN_SCurve::v;

Current velocity


variable v_max

int32_t SYN_SCurve::v_max;

Maximum velocity magnitude



The documentation for this class was generated from the following file src/syntropic/util/syn_scurve.h