ROLL

The ROLL function calculates the third angle (in radians) of a body-fixed 3 2 1 yaw-pitch-roll rotation sequence between markers i and j. Marker j defaults to the global coordinate system if it is not specified. Note that roll is an Euler angle.
 
Note:  
The values returned by the functions have the same units defined in the UNITS statement except for angular values. All angular values are returned in radians, all angular velocities are returned in radians per units of time (as defined in the UNITS statement), all angular accelerations are returned in radians per units of time squared. Functions RTOD and DTOR may be helpful to create angular expressions involving degrees and radians.
For example, the below statements create a constraint to keep the angular velocity WX(8, 9) equal to 2.5 degrees per second.
UNITS/SYSTEM = MKS ! Using seconds
GCON/1, FUNCTION = WX(8, 9) – 2.5*DTOR ! Convert degrees to radians

Format

ROLL (i[,j])

Arguments

 
i
The marker whose rotations are being sought.
j
The marker with respect to which the rotations are being measured.

Examples

REQUEST/2, F2=ROLL(143)
This REQUEST statement outputs the roll angle (in radians) of Marker 143 relative to the global coordinate system.
See other Displacement measures available.