SITL: fixed build warnings

This commit is contained in:
Andrew Tridgell 2015-05-30 22:51:38 +10:00
parent d5da9fcca6
commit b541bfb739
1 changed files with 3 additions and 3 deletions

View File

@ -138,9 +138,9 @@ void SITL::convert_body_frame(double rollDeg, double pitchDeg,
thetaDot = ToRad(pitchRate);
psiDot = ToRad(yawRate);
*p = phiDot - psiDot*sinf(theta);
*q = cosf(phi)*thetaDot + sinf(phi)*psiDot*cosf(theta);
*r = cosf(phi)*psiDot*cosf(theta) - sinf(phi)*thetaDot;
*p = phiDot - psiDot*sin(theta);
*q = cos(phi)*thetaDot + sin(phi)*psiDot*cos(theta);
*r = cos(phi)*psiDot*cos(theta) - sin(phi)*thetaDot;
}