Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ev3-toolbox-matlab
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mindstorms
ev3-toolbox-matlab
Commits
22d352ce
Commit
22d352ce
authored
8 years ago
by
Tim Stadtmann
Browse files
Options
Downloads
Patches
Plain Diff
Delete deprecated enum 'Device'
parent
3a628d2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Device.m
+0
-121
0 additions, 121 deletions
source/Device.m
with
0 additions
and
121 deletions
source/Device.m
deleted
100644 → 0
+
0
−
121
View file @
3a628d2f
%Device Device enumeration for the brick
%
% Notes::
% - Collection of enumeration constants used for the brick
classdef
Device
<
uint8
enumeration
% motor types and modes
LargeMotor
(
7
)
MediumMotor
(
8
)
MotorDegrees
(
0
)
MotorRotation
(
1
)
MotorSpeed
(
2
)
% motor definitions for setting and starting the motor (found in c_output.c => NOS DATA8)
MotorA
(
1
)
MotorB
(
2
)
MotorC
(
4
)
MotorD
(
8
)
% motor definitions for reading motor data with output functions (found in c_output.c)
% e.g. outputGetCount(...), outputRead(...) (the latter is yet to be implemented)
MotorA_PORT
(
0
)
MotorB_PORT
(
1
)
MotorC_PORT
(
2
)
MotorD_PORT
(
3
)
% motor definitions for input functions (found in (?))
% e.g. inputDeviceGetConnection(...), inputDeviceGetName(...), ...
MotorA_INPUT
(
16
)
MotorB_INPUT
(
17
)
MotorC_INPUT
(
18
)
MotorD_INPUT
(
19
)
% mode of braking (found in c_output.c)
Coast
(
0
)
Brake
(
1
)
% sensor ports (found in c_output.c)
Port1
(
0
)
Port2
(
1
)
Port3
(
2
)
Port4
(
3
)
% LED patterns (found in bytecodes.h)
LedBlack
(
0
)
LedGreen
(
1
)
LedRed
(
2
)
LedOrange
(
3
)
LedGreenFlash
(
4
)
LedRedFlash
(
5
)
LedOrangeFlash
(
6
)
LedGreenPulse
(
7
)
LedRedPulse
(
8
)
LedOrangePulse
(
9
)
% colors (found in bytecodes.h)
NoColor
(
0
)
BlackColor
(
1
)
BlueColor
(
2
)
GreenColor
(
3
)
YellowColor
(
4
)
RedColor
(
5
)
WhiteColor
(
6
)
BrownColor
(
7
)
% ultrasonic sensor definitions (found in types.html)
Ultrasonic
(
30
)
USDistCM
(
0
)
USDistIN
(
1
)
USListen
(
2
)
% gyro sensor definitions (found in types.html)
Gyro
(
32
)
GyroAng
(
0
)
GyroRate
(
1
)
% touch sensor definitions (found in types.html)
Touch
(
16
)
Pushed
(
0
)
Bumps
(
1
)
% color sensor definitions (found in types.html)
Color
(
29
)
ColReflect
(
0
)
ColAmbient
(
1
)
ColColor
(
2
)
% input & output connection types (found in lms2012.h)
ConnUnknown
(
111
)
ConnDaisyChain
(
117
)
ConnNXTColor
(
118
)
ConnNXTDumb
(
119
)
ConnNXTIIC
(
120
)
ConnInputDumb
(
121
)
ConnInputUART
(
122
)
ConnOutputDumb
(
123
)
ConnOutputIntelligent
(
124
)
ConnOutputTacho
(
125
)
ConnNone
(
126
)
ConnError
(
127
)
% NXT sound sensor definitions (found in types.html)
Sound
(
3
)
SoundDB
(
0
)
SoundDBA
(
1
)
% NXT light sensor definitions (found in types.html)
NXTLight
(
2
)
NXTReflect
(
0
)
NXTAmbient
(
1
)
% NXT touch sensor definitions
NXTTouch
(
1
)
% NXT color sensor definitions
NXTColor
(
4
)
NXTColReflect
(
0
)
NXTColAmbient
(
1
)
NXTColCol
(
2
)
NXTColGreen
(
3
)
NXTColBlue
(
4
)
NXTColRaw
(
5
)
% NXT ultrasonic sensor definitions
NXTUltrasonic
(
5
)
NXTUSDistCM
(
0
)
NXTUSDistIN
(
1
)
% NXT temperature sensor definitions
NXTTemperature
(
6
)
NXTTempC
(
0
)
NXTTempF
(
1
)
% additional device types
TypeUnknown
(
125
)
TypeNone
(
126
)
TypeError
(
127
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment