function createCustomSensorTemplate()
%createCustomSensorTemplate Create sample implementation for UAV custom sensor interface
%   createCustomSensorTemplate creates a sample template implementation for
%   UAV custom sensor that inherits from the uav.SensorAdaptor class. This
%   function opens a new file in MATLAB editor.
%
%   Example:
%      % Open custom sensor template in editor
%      createCustomSensorTemplate
%
%   See also uav.SensorAdaptor.

%   Copyright 2020-2022 The MathWorks, Inc.

% Read in template code. Use full path to avoid local versions
% of the file from being read.

    exampleFile = fullfile(toolboxdir("uav"), "uavmatlab", "+uav",...
                           "+internal", "+scenario", "+sensor", "CustomSensorExample.m");

    shared_uav_rst.internal.copyCustomSensorTemplate(exampleFile);
end
