%% Visualize Tuning Results Using tunerPlotPose
% Create a tunerconfiguration object. Set the tunerPlotPose function as the output function of the object.

tc = tunerconfig('imufilter','OutputFcn',@tunerPlotPose)

% Load prerecorded sensor data.

ld = load('imufilterTuneData.mat');

% Tune an imufilter object using the sensor data. The truth data and the estimates are shown in a figure.

tune(imufilter,ld.sensorData,ld.groundTruth,tc)

% Copyright 2020 The MathWorks, Inc.