Commit 81a36b7b authored by Claudio Mandrioli's avatar Claudio Mandrioli
Browse files

added test case for function q2dcm

parent cfa02402
......@@ -12,5 +12,5 @@ test_GPSaidedINS_car
test_GPSaidedINS_cycling
test_gravity
test_Nav_eq
% test_q2dcm
test_q2dcm
% test_Rt2d
\ No newline at end of file
% test case for function q2dcm
%purpose: test the function in a basic case to verify it runs correctly and
% returns a 3x3 matrix
%oracle: verify that the output is an identity matrix for null rotation
clear all %clear workspace
close all
cd .. %move to functions directory
%define inputs
q=[0,0,0,0];
%execute function
R=q2dcm(q);
cd tests %go back to tests directory
%verify output
if ~(R==eye(3))
error('error in function q2dcm')
else
disp('function q2dcm ok')
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment