Please enable JavaScript to view this site.

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:

Value

Meaning

1

Unable to enter point, container full

0

Operation OK

-1

motID does not exist

-2

Key less than or equal to the last one introduced and insertion flag absent

-3

Illegal posY value (data size smaller than expected)

-4

Illegal other value (size different from that specified at creation)

-5

Internal error

-6

MOT manager busy (other transaction in progress)

-10

Missing data from the first derivative

-11

Data missing from derivative second

-12

Type of interpolation not handled

Validity

Rule, Task

Note


 

  

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