Please enable JavaScript to view this site.

Function that calculates the acceleration and jerk values that allow, starting from a standstill, to reach spe speed in time tAcc.

Syntax

i32 kin_conv (real spe, real tAcc, real pJerk, real rAcc, real rJerk [, real maxAcc=0.0])

spe

Velocity value to be reached starting from 0.

Its absolute value [unit/sec] is used

tAcc

Time to go from 0 to spe [sec]

pJerk

Value between 0 and 1 that determines how much jerk to apply to the acceleration segment:

0, strong stepped acceleration (jerk not used)

1, gentle triangle acceleration (fully jerked segment - speed ramp to S)

rAcc

Variable in which the required acceleration value is written [units/sec^2]

rJerk

Variable in which the jerk value needed is written [units/sec^3]

maxAcc

Maximum value the acceleration can take. (optional, default 0.0)

Its absolute value is used

Result

Returns:

Value

Description

3

tAcc and pJerk not met due to maxAcc limitation,(in which case) the parameter pJerk is taken as if it were 0

2

tAcc not met due to limitation of maxAcc

1

pJerk not met due to limitation of maxAcc

0

All OK

-2

Negative or null tAcc (assumes 1)

-3

pJerk outside the range 0-:-1 (assumes 0)

Validity

Rule, Task

Note

In the case of acceleration limited by maxAcc, when possible, the function still tries to guarantee the duration of the acceleration segment tAcc at the expense of the jerk factor pJerk

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC