mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 23:20:34 +08:00
Matrix Quaternions: Apply simpler call for constructor and copying to all remaining modules
This commit is contained in:
@@ -807,7 +807,7 @@ void BlockLocalPositionEstimator::updateSSParams()
|
||||
void BlockLocalPositionEstimator::predict()
|
||||
{
|
||||
// get acceleration
|
||||
matrix::Quaternion<float> q(&_sub_att.get().q[0]);
|
||||
matrix::Quatf q(&_sub_att.get().q[0]);
|
||||
_eul = matrix::Euler<float>(q);
|
||||
_R_att = matrix::Dcm<float>(q);
|
||||
Vector3f a(_sub_sensor.get().accelerometer_m_s2);
|
||||
|
||||
Reference in New Issue
Block a user