Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Commits
3d0457ff
Commit
3d0457ff
authored
3 years ago
by
Alberto Nidasio
Browse files
Options
Downloads
Patches
Plain Diff
[CI/CD] Fixed cppcheck errors
parent
5c292a14
Branches
Branches containing commit
Tags
gh-5258
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/shared/algorithms/NAS/StateInitializer.cpp
+4
-1
4 additions, 1 deletion
src/shared/algorithms/NAS/StateInitializer.cpp
with
4 additions
and
1 deletion
src/shared/algorithms/NAS/StateInitializer.cpp
+
4
−
1
View file @
3d0457ff
...
@@ -36,6 +36,7 @@ void StateInitializer::eCompass(const Eigen::Vector3f acc,
...
@@ -36,6 +36,7 @@ void StateInitializer::eCompass(const Eigen::Vector3f acc,
Eigen
::
Vector3f
am
(
acc
.
cross
(
mag
));
Eigen
::
Vector3f
am
(
acc
.
cross
(
mag
));
Eigen
::
Matrix3f
R
;
Eigen
::
Matrix3f
R
;
// cppcheck-suppress constStatement
R
<<
am
.
cross
(
acc
),
am
,
acc
;
R
<<
am
.
cross
(
acc
),
am
,
acc
;
R
.
col
(
0
).
normalize
();
R
.
col
(
0
).
normalize
();
R
.
col
(
1
).
normalize
();
R
.
col
(
1
).
normalize
();
...
@@ -68,8 +69,10 @@ void StateInitializer::triad(Eigen::Vector3f& acc, Eigen::Vector3f& mag,
...
@@ -68,8 +69,10 @@ void StateInitializer::triad(Eigen::Vector3f& acc, Eigen::Vector3f& mag,
// Compose the reference and measured matrixes
// Compose the reference and measured matrixes
Eigen
::
Matrix3f
M
;
Eigen
::
Matrix3f
M
;
// cppcheck-suppress constStatement
M
<<
R1
,
R2
,
R3
;
M
<<
R1
,
R2
,
R3
;
Eigen
::
Matrix3f
m
;
Eigen
::
Matrix3f
m
;
// cppcheck-suppress constStatement
m
<<
r1
,
r2
,
r3
;
m
<<
r1
,
r2
,
r3
;
// Compute the rotation matrix and the corresponding quaternion
// Compute the rotation matrix and the corresponding quaternion
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment