Function to add data to the MOT points set.
Syntax |
i32 mot_append (i32 motId, real posX, real posY, real velY, real accY [, real other=NULL]) |
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
motId |
MOT reference code (obtained from the mot_create() function) |
||||||||||||||||||||||||
posX |
Value of the interpolation key associated with the point (abscissa, x-coordinate). Depending on the flag value used in mot_create(), the value of posX must be mandatorily higher than the last one entered or it can take any value |
||||||||||||||||||||||||
posY |
Array containing the data of the n ordinates (position coordinates relative to the posX abscissa) |
||||||||||||||||||||||||
velY |
Array containing the data of the n first derivatives (velocity coordinates relative to the posX abscissa). WARNING: These are required if the interpolation type is equal to 3 or 5. Otherwise, specify NULL. |
||||||||||||||||||||||||
accY |
Array containing the data of the n second derivatives (acceleration coordinates relative to the posX abscissa). WARNING: These are required if the interpolation type is equal to 5. Otherwise, specify NULL. |
||||||||||||||||||||||||
other |
Data structure containing auxiliary data. (optional, default NULL) NOTE: A structure must necessarily be used to handle auxiliary data. If mixed type was chosen as interpolation (flag = 0xF0000, see mot_create()), the first field of the other structure must be an i32 specifying the type of interpolation of the segment (1=linear, 2=automatic cubic, 4=automatic pent). There are no restrictions on the other fields in the structure. |
||||||||||||||||||||||||
Result |
Returns:
|
||||||||||||||||||||||||
Validity |
Rule, Task |
||||||||||||||||||||||||
Note |
Example of use:
|