From 8f397345801a01d93b6cc552ae8740e89caa4893 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 17 Feb 2014 10:34:02 -0500 Subject: [PATCH] extra lines.. to be completed --- .../+imuSimulator/coriolisTestMonteCarlo.m | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m b/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m index eaec0f8c3..f525a407f 100644 --- a/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m +++ b/matlab/unstable_examples/+imuSimulator/coriolisTestMonteCarlo.m @@ -47,14 +47,14 @@ else end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -numTests = 10 +numTests = 20 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)) + posFinErrorFixed(testInd) = norm(axisPositionsError(:,end))/trajectoryLengthFixedFrameGT*100 + rotFinErrorFixed(testInd) = norm(rotationsErrorVectors(:,end)) + velFinErrorFixed(testInd) = norm(axisVelocityError(:,end)) % Run the same initial conditions but navigating in the rotating frame navFrameRotating = 1; imuSimulator.coriolisExample @@ -63,4 +63,9 @@ for testInd=1:numTests velFinErrorRot(testInd) = norm(axisVelocityError(:,end)) end +mean(posFinErrorFixed) +max(posFinErrorFixed) + +box(posFinErrorFixed) +