mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 21:13:35 +08:00
Remove unsafe access to .data() and _data in Matrix
This commit is contained in:
@@ -495,9 +495,9 @@ bool AttitudeEstimatorQ::init()
|
||||
|
||||
// Fill rotation matrix
|
||||
Dcmf R;
|
||||
R.setRow(0, i);
|
||||
R.setRow(1, j);
|
||||
R.setRow(2, k);
|
||||
R.row(0) = i;
|
||||
R.row(1) = j;
|
||||
R.row(2) = k;
|
||||
|
||||
// Convert to quaternion
|
||||
_q = R;
|
||||
|
||||
Reference in New Issue
Block a user