From 794a22249bde7b68b61e4cf7c6c39295d72354b5 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 17 Feb 2014 10:13:13 -0500 Subject: [PATCH] small change --- .../+imuSimulator/coriolisTestMonteCarlo.m | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m b/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m index 9c66ba134..eaec0f8c3 100644 --- a/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m +++ b/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m @@ -48,21 +48,19 @@ end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% numTests = 10 -% for testInd=1:numTests -% accelFixed = 2*rand(3,1)-ones(3,1); -% imuSimulator.coriolisExample -% posFinError(testInd) = norm(axisPositionsError(:,end))/trajectoryLengthFixedFrameGT*100 -% rotFinError(testInd) = norm(rotationsErrorVectors(:,end)) -% velFinError(testInd) = norm(axisVelocityError(:,end)) -% end - -% Run the same initial conditions but navigating in the rotating frame -navFrameRotating = 1; -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% for testInd=1:numTests + navFrameRotating = 0; accelFixed = 2*rand(3,1)-ones(3,1); imuSimulator.coriolisExample + posFinError(testInd) = norm(axisPositionsError(:,end))/trajectoryLengthFixedFrameGT*100 + rotFinError(testInd) = norm(rotationsErrorVectors(:,end)) + velFinError(testInd) = norm(axisVelocityError(:,end)) + % Run the same initial conditions but navigating in the rotating frame + navFrameRotating = 1; + imuSimulator.coriolisExample posFinErrorRot(testInd) = norm(axisPositionsError(:,end))/trajLen*100 rotFinErrorRot(testInd) = norm(rotationsErrorVectors(:,end)) velFinErrorRot(testInd) = norm(axisVelocityError(:,end)) -end \ No newline at end of file +end + +