Skip to content
Snippets Groups Projects
Commit aff51fd9 authored by Claudio Mandrioli's avatar Claudio Mandrioli
Browse files

added test case for function Rt2d

parent 81a36b7b
No related branches found
No related tags found
No related merge requests found
......@@ -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
% 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment