Projekt

Splošno

Profil

Protocol » Zgodovina » Verzija 8

Aleksandar Todorovic, 03.03.2013 19:22

1 1 Aleksandar Todorovic
h1. Protocol
2 1 Aleksandar Todorovic
3 5 Aleksandar Todorovic
h2. MOVE 
4 5 Aleksandar Todorovic
5 5 Aleksandar Todorovic
<pre>
6 5 Aleksandar Todorovic
MOVE <motor [LEFT|RIGHT|BOTH] default:BOTH> <direction [FORWARD|BACKWARD]> <unsigned int amount> <unit [MM|CM|M|STEPS] defaults:STEPS> 
7 5 Aleksandar Todorovic
</pre> 
8 1 Aleksandar Todorovic
9 6 Aleksandar Todorovic
h3. Description:
10 1 Aleksandar Todorovic
11 2 Aleksandar Todorovic
Moves the selected motor in the desired direction by a desired amount.
12 1 Aleksandar Todorovic
13 6 Aleksandar Todorovic
h3. Example:
14 1 Aleksandar Todorovic
15 2 Aleksandar Todorovic
MOVE LEFT FORWARD 100
16 2 Aleksandar Todorovic
Moves the left motor for 100 steps.
17 2 Aleksandar Todorovic
MOVE RIGHT FORWARD 15 CM
18 2 Aleksandar Todorovic
Moves the right motor for 15 cm.
19 2 Aleksandar Todorovic
MOVE BACKWARD 1 M
20 2 Aleksandar Todorovic
Moves both motors 1 m backward.
21 1 Aleksandar Todorovic
22 8 Aleksandar Todorovic
23 8 Aleksandar Todorovic
24 8 Aleksandar Todorovic
25 8 Aleksandar Todorovic
26 6 Aleksandar Todorovic
h2. SET ACCELERATION_MODE
27 1 Aleksandar Todorovic
28 6 Aleksandar Todorovic
SET ACCELERATION_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH> <acceleration mode [CONSTANT|LINEAR] default:LINEAR>
29 1 Aleksandar Todorovic
30 6 Aleksandar Todorovic
h3. Description:
31 6 Aleksandar Todorovic
32 3 Aleksandar Todorovic
Sets the acceleration method of the selected motor.
33 1 Aleksandar Todorovic
34 6 Aleksandar Todorovic
h3. Example:
35 1 Aleksandar Todorovic
			
36 1 Aleksandar Todorovic
SET ACCELERATION_MODE LINEAR
37 3 Aleksandar Todorovic
38 8 Aleksandar Todorovic
39 8 Aleksandar Todorovic
40 8 Aleksandar Todorovic
41 8 Aleksandar Todorovic
42 6 Aleksandar Todorovic
h2. SET MOTOR_MODE
43 6 Aleksandar Todorovic
44 1 Aleksandar Todorovic
SET MOTOR_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH> <motor mode [INTERLEAVE|MICROSTEP|SINGLE|DOUBLE] default:double>
45 1 Aleksandar Todorovic
46 6 Aleksandar Todorovic
h3. Description:
47 3 Aleksandar Todorovic
48 1 Aleksandar Todorovic
Sets the motor mode of the selected motor.
49 1 Aleksandar Todorovic
50 6 Aleksandar Todorovic
h3. Example
51 6 Aleksandar Todorovic
52 3 Aleksandar Todorovic
SET MOTOR_MODE INTERLEAVE
53 1 Aleksandar Todorovic
54 8 Aleksandar Todorovic
55 8 Aleksandar Todorovic
56 8 Aleksandar Todorovic
57 8 Aleksandar Todorovic
58 6 Aleksandar Todorovic
h2. SET MAX_SPEED
59 6 Aleksandar Todorovic
60 1 Aleksandar Todorovic
SET MAX_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH> <unsigned int (capped with motor constraints)>
61 1 Aleksandar Todorovic
62 1 Aleksandar Todorovic
h3. Description:
63 1 Aleksandar Todorovic
64 1 Aleksandar Todorovic
Sets the max motor speed of the selected motor.
65 1 Aleksandar Todorovic
66 1 Aleksandar Todorovic
h3. Example:
67 3 Aleksandar Todorovic
68 6 Aleksandar Todorovic
SET MAX_SPEED BOTH 40
69 6 Aleksandar Todorovic
70 8 Aleksandar Todorovic
71 8 Aleksandar Todorovic
72 8 Aleksandar Todorovic
73 8 Aleksandar Todorovic
74 3 Aleksandar Todorovic
h2. SET ACC_SPEED
75 1 Aleksandar Todorovic
76 6 Aleksandar Todorovic
SET ACC_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH> <unsigned int>
77 1 Aleksandar Todorovic
78 8 Aleksandar Todorovic
h3. Description:
79 3 Aleksandar Todorovic
80 1 Aleksandar Todorovic
Sets the acceleration speed of the selected motor.
81 1 Aleksandar Todorovic
82 8 Aleksandar Todorovic
h3. Example:
83 1 Aleksandar Todorovic
84 1 Aleksandar Todorovic
SET ACC_SPEED RIGHT 10
85 1 Aleksandar Todorovic
86 8 Aleksandar Todorovic
87 8 Aleksandar Todorovic
88 8 Aleksandar Todorovic
89 8 Aleksandar Todorovic
90 6 Aleksandar Todorovic
h2. GET ACCELERATION_MODE
91 6 Aleksandar Todorovic
92 6 Aleksandar Todorovic
<pre>
93 3 Aleksandar Todorovic
GET ACCELERATION_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH>
94 6 Aleksandar Todorovic
</pre>
95 1 Aleksandar Todorovic
96 6 Aleksandar Todorovic
h3. Description:
97 1 Aleksandar Todorovic
98 1 Aleksandar Todorovic
Returns the current acceleration mode.
99 3 Aleksandar Todorovic
100 6 Aleksandar Todorovic
h3. Example:
101 1 Aleksandar Todorovic
102 1 Aleksandar Todorovic
GET ACCELERATION_MODE BOTH
103 1 Aleksandar Todorovic
104 8 Aleksandar Todorovic
105 8 Aleksandar Todorovic
106 8 Aleksandar Todorovic
107 8 Aleksandar Todorovic
108 6 Aleksandar Todorovic
h2. GET MOTOR_MODE
109 6 Aleksandar Todorovic
110 3 Aleksandar Todorovic
GET MOTOR_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH>
111 1 Aleksandar Todorovic
112 6 Aleksandar Todorovic
h3. Description:
113 3 Aleksandar Todorovic
114 1 Aleksandar Todorovic
Returns the current motor mode.
115 3 Aleksandar Todorovic
116 6 Aleksandar Todorovic
h3. Example:
117 1 Aleksandar Todorovic
118 3 Aleksandar Todorovic
GET MOTOR_MODE
119 1 Aleksandar Todorovic
120 1 Aleksandar Todorovic
h2. GET MAX_SPEED
121 1 Aleksandar Todorovic
122 8 Aleksandar Todorovic
123 8 Aleksandar Todorovic
124 8 Aleksandar Todorovic
125 8 Aleksandar Todorovic
126 1 Aleksandar Todorovic
GET MAX_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH>
127 3 Aleksandar Todorovic
128 6 Aleksandar Todorovic
h3. Description:
129 3 Aleksandar Todorovic
130 1 Aleksandar Todorovic
Returns the current max motor speed.
131 3 Aleksandar Todorovic
132 6 Aleksandar Todorovic
h3. Example:
133 1 Aleksandar Todorovic
134 1 Aleksandar Todorovic
GET MAX_SPEED BOTH
135 1 Aleksandar Todorovic
136 1 Aleksandar Todorovic
h2. GET ACC_SPEED
137 1 Aleksandar Todorovic
138 8 Aleksandar Todorovic
139 8 Aleksandar Todorovic
140 8 Aleksandar Todorovic
141 8 Aleksandar Todorovic
142 1 Aleksandar Todorovic
GET ACC_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH>
143 3 Aleksandar Todorovic
144 6 Aleksandar Todorovic
h3. Description:
145 1 Aleksandar Todorovic
146 3 Aleksandar Todorovic
Returns the current acceleration speed.
147 1 Aleksandar Todorovic
148 6 Aleksandar Todorovic
h3. Example:
149 1 Aleksandar Todorovic
150 1 Aleksandar Todorovic
GET ACC_SPEED
151 1 Aleksandar Todorovic
152 8 Aleksandar Todorovic
153 8 Aleksandar Todorovic
154 8 Aleksandar Todorovic
155 8 Aleksandar Todorovic
156 6 Aleksandar Todorovic
h2. GET CONTROLLER_MAX_SPEED
157 6 Aleksandar Todorovic
158 1 Aleksandar Todorovic
GET CONTROLLER_MAX_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH>
159 1 Aleksandar Todorovic
160 6 Aleksandar Todorovic
h3. escription:
161 1 Aleksandar Todorovic
162 3 Aleksandar Todorovic
Returns the max controller speed
163 1 Aleksandar Todorovic
164 6 Aleksandar Todorovic
h3. Example:
165 1 Aleksandar Todorovic
166 1 Aleksandar Todorovic
GET CONTROLLER_MAX_SPEED RIGHT
167 1 Aleksandar Todorovic
168 8 Aleksandar Todorovic
169 8 Aleksandar Todorovic
170 8 Aleksandar Todorovic
171 6 Aleksandar Todorovic
h2. RELEASE
172 6 Aleksandar Todorovic
173 3 Aleksandar Todorovic
RELEASE <motor [LEFT|RIGHT|BOTH] default:BOTH>
174 1 Aleksandar Todorovic
175 6 Aleksandar Todorovic
h3. Description:
176 1 Aleksandar Todorovic
177 3 Aleksandar Todorovic
Releases the motor coils.
178 1 Aleksandar Todorovic
179 6 Aleksandar Todorovic
h3. Example:
180 3 Aleksandar Todorovic
181 1 Aleksandar Todorovic
RELEASE RIGHT
182 1 Aleksandar Todorovic
183 1 Aleksandar Todorovic
h2. CLEAR
184 1 Aleksandar Todorovic
185 8 Aleksandar Todorovic
186 8 Aleksandar Todorovic
187 8 Aleksandar Todorovic
188 8 Aleksandar Todorovic
189 3 Aleksandar Todorovic
CLEAR <motor [LEFT|RIGHT|BOTH] default:BOTH>
190 1 Aleksandar Todorovic
191 6 Aleksandar Todorovic
h3. Description:
192 1 Aleksandar Todorovic
193 3 Aleksandar Todorovic
Clears selected motors order queue. The currently executing order is not affected.
194 1 Aleksandar Todorovic
195 6 Aleksandar Todorovic
h3. Example:
196 1 Aleksandar Todorovic
197 1 Aleksandar Todorovic
CLEAR
198 8 Aleksandar Todorovic
199 8 Aleksandar Todorovic
200 8 Aleksandar Todorovic
201 1 Aleksandar Todorovic
202 6 Aleksandar Todorovic
h2. STOP
203 6 Aleksandar Todorovic
204 3 Aleksandar Todorovic
STOP <motor [LEFT|RIGHT|BOTH] default:BOTH>
205 1 Aleksandar Todorovic
206 6 Aleksandar Todorovic
h3. Description:
207 1 Aleksandar Todorovic
208 3 Aleksandar Todorovic
Immediately stops the selected motors and clears their order queue.
209 1 Aleksandar Todorovic
210 6 Aleksandar Todorovic
h3. Example:
211 1 Aleksandar Todorovic
212 3 Aleksandar Todorovic
STOP LEFT