rotatekins.c:23:21: error: Array index out of bounds; 'joints' buffer size is 24 and it is accessed at offset 40. [ctuArrayIndex]
double c_rad = -joints[5]*M_PI/180;
^
tripodkins.c:299:28: note: Calling function kinematicsForward, 1st argument is uninitialized
if (0 != kinematicsForward(joints, &pos, &fflags, NULL)) {
^
rotatekins.c:23:21: note: Using argument joints
double c_rad = -joints[5]*M_PI/180;
cppcheck 发现了这个 – 并且是正确的: