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) +