Skip to content
Snippets Groups Projects
Commit 5893f8dd authored by Tim Stadtmann's avatar Tim Stadtmann
Browse files

Add Device-class file (trailing commit)

parent 3062ff73
No related tags found
No related merge requests found
classdef Device < MaskedHandle
% NOTE: WIP -> Bis jetzt nur debug-Parameter testweise implementiert. Läuft noch nicht
properties
% debug (numeric in {0,1,2}): Debug mode. [WRITABLE]
% - 0: Debug turned off
% - 1: (High-level-) Debug turned on for EV3-object - enables feedback in the
% console about what firmware-commands have been called when using a method
% - 2: Low-level-Debug turned on - each packet sent and received is printed to the
% console
debug;
end
properties (Abstract, Access = protected)
commInterface;
end
methods
function setDebug(device, debug)
if ~isBool(debug)
error('Given parameter is not a bool.');
end
device.debug = str2bool(debug);
end
function set.debug(device, debug)
device.setDebug(debug);
end
function debug = get.debug(device)
debug = device.debug;
end
end
methods (Abstract)
%reset(device);
%dispatch(device,...)
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment