Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gps-modeling
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martina Maggio
gps-modeling
Commits
aff51fd9
Commit
aff51fd9
authored
6 years ago
by
Claudio Mandrioli
Browse files
Options
Downloads
Patches
Plain Diff
added test case for function Rt2d
parent
81a36b7b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/tests/main_runAllTests.m
+1
-1
1 addition, 1 deletion
matlab/tests/main_runAllTests.m
matlab/tests/test_Rt2d.m
+25
-0
25 additions, 0 deletions
matlab/tests/test_Rt2d.m
with
26 additions
and
1 deletion
matlab/tests/main_runAllTests.m
+
1
−
1
View file @
aff51fd9
...
...
@@ -13,4 +13,4 @@ test_GPSaidedINS_cycling
test_gravity
test_Nav_eq
test_q2dcm
% test_Rt2d
\ No newline at end of file
test_Rt2d
\ No newline at end of file
This diff is collapsed.
Click to expand it.
matlab/tests/test_Rt2d.m
0 → 100644
+
25
−
0
View file @
aff51fd9
% test case for function Rt2d
%purpose: test the function in basic case to verify it runs correctly, i.e.
% returns a 3x3 matrix
%oracle: the rotation matrix with null angles should be the identity
% matrix
clear
all
%clear workspace
close
all
cd
..
%move to functions directory
%initialize inputs
ang
=
[
0
,
0
,
0
];
%execute function
R
=
Rt2b
(
ang
);
cd
tests
%go back to tests directory
%verify output
if
~
(
R
==
eye
(
3
))
error
(
'error in function Rt2d'
)
else
disp
(
'function Rt2d ok'
)
end
\ No newline at end of file
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