Skip to content

Commit

Permalink
Fix typos found by izaakvc in IntelRealSense#2487
Browse files Browse the repository at this point in the history
  • Loading branch information
Lior Ramati committed Oct 8, 2018
1 parent 15f5ca8 commit ed69020
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions wrappers/matlab/config.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function delete(this)
% Functions
function enable_stream(this, varargin)
narginchk(2, 7);
validateattributes(varargin{1}, {'realsense.stream', 'numeric'}, {'scalar', 'nonnegative', 'real', 'integer', '<=', realsense.stream.count}, '', 'stream_type', 2);
which = 'none'
validateattributes(varargin{1}, {'realsense.stream', 'numeric'}, {'scalar', 'nonnegative', 'real', 'integer', '<=', int64(realsense.stream.count)}, '', 'stream_type', 2);
which = 'none';
switch nargin
case 2
which = 'enable_stream#stream';
Expand Down Expand Up @@ -82,8 +82,12 @@ function enable_stream(this, varargin)
validateattributes(varargin{4}, {'numeric'}, {'scalar', 'nonnegative', 'real', 'integer'}, '', 'height', 5);
validateattributes(varargin{5}, {'realsense.format', 'numeric'}, {'scalar', 'nonnegative', 'real', 'integer', '<=', realsense.format.count}, '', 'format', 6);
validateattributes(varargin{6}, {'numeric'}, {'scalar', 'nonnegative', 'real', 'integer'}, '', 'framerate', 7);
which = 'enable_stream#full';
end
args = {size(varargin)};
for i = 1:length(varargin)
args{i} = int64(varargin{i});
end
args = num2cell(int64([varargin{:}]));
realsense.librealsense_mex('rs2::config', which, this.objectHandle, args{:});
end
function enable_all_streams(this)
Expand Down
4 changes: 2 additions & 2 deletions wrappers/matlab/depth_sensor.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Wraps librealsense2 depth_sensor class
classdef depth_sensor < sensor
classdef depth_sensor < realsense.sensor
methods
% Constructor
function this = depth_sensor(handle)
Expand All @@ -12,5 +12,5 @@
function scale = get_depth_scale(this)
scale = realsense.librealsense_mex('rs2::depth_sensor', 'get_depth_scale', this.objectHandle);
end
emd
end
end
4 changes: 2 additions & 2 deletions wrappers/matlab/depth_stereo_sensor.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Wraps librealsense2 depth_stereo_sensor class
classdef depth_stereo_sensor < depth_sensor
classdef depth_stereo_sensor < realsense.depth_sensor
methods
% Constructor
function this = depth_stereo_sensor(handle)
Expand All @@ -12,5 +12,5 @@
function scale = get_stereo_baseline(this)
scale = realsense.librealsense_mex('rs2::depth_stereo_sensor', 'get_stereo_baseline', this.objectHandle);
end
emd
end
end

0 comments on commit ed69020

Please sign in to comment.