mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 18:57:35 +08:00
Remove direct access to internal data
This commit is contained in:
+2
-2
@@ -136,8 +136,8 @@ int main()
|
||||
A.renormalize();
|
||||
float err = 0.0f;
|
||||
|
||||
for (auto & row : A._data) {
|
||||
Vector3f rvec(row);
|
||||
for (size_t r = 0; r < 3; r++) {
|
||||
Vector3f rvec(matrix::Matrix<float,1,3>(A.row(r)).transpose());
|
||||
err += fabs(1.0f - rvec.length());
|
||||
}
|
||||
TEST(err < eps);
|
||||
|
||||
Reference in New Issue
Block a user