mirror of https://github.com/ArduPilot/ardupilot
AP_Gimbal: report gimbal angles using a 312 rotation vector
This commit is contained in:
parent
2850c7ab4a
commit
21b909f670
|
@ -180,7 +180,7 @@ void AP_Gimbal::update_target(Vector3f newTarget)
|
|||
|
||||
Vector3f AP_Gimbal::getGimbalEstimateEF()
|
||||
{
|
||||
Quaternion quatEst;_ekf.getQuat(quatEst);Vector3f eulerEst;quatEst.to_euler(eulerEst.x, eulerEst.y, eulerEst.z);
|
||||
Quaternion quatEst;_ekf.getQuat(quatEst);Vector3f eulerEst;quatEst.to_vector312(eulerEst.x, eulerEst.y, eulerEst.z);
|
||||
return eulerEst;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue