%% Load Pre-defined Parameters in imuSensor
% Create an imuSensor system object.

s = imuSensor;

% Load a JSON file.

fn = fullfile(matlabroot,'toolbox','shared',...
    'positioning','positioningdata','generic.json');

% Here is a screen shot of the JSON file with some parts collapsed.
%
% Configure the object as a 6-axis sensor.

loadparams(s,fn,'GenericLowCost6Axis')
s

% Configure the object as a 9-axis sensor.

loadparams(s,fn,'GenericLowCost9Axis')
s

% Copyright 2019 The MathWorks, Inc.