Struct SYN_Ramp¶
Ramp generator instance — current value, target, rate.
#include <syn_ramp.h>
Public Attributes¶
| Type | Name |
|---|---|
| int32_t | accel |
| int32_t | current |
| bool | done |
| int32_t | frac_accum |
| uint8_t | frac_bits |
| uint8_t | mode |
| int32_t | rate |
| int32_t | target |
| int32_t | velocity |
Public Attributes Documentation¶
variable accel¶
Acceleration per tick (in Qfrac_bits)
variable current¶
Current output value
variable done¶
true when current == target
variable frac_accum¶
Fractional position accumulator
variable frac_bits¶
Fixed-point bits (0 = integer, 8 = Q8)
variable mode¶
SYN_RampMode
variable rate¶
Max velocity per update (in Qfrac_bits)
variable target¶
Desired final value
variable velocity¶
Current velocity (in Qfrac_bits)
The documentation for this class was generated from the following file src/syntropic/util/syn_ramp.h