Projekt

Splošno

Profil

Protocol » Zgodovina » Verzija 7

Aleksandar Todorovic, 03.03.2013 19:21

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 6 Aleksandar Todorovic
h2. SET ACCELERATION_MODE
23 1 Aleksandar Todorovic
24 6 Aleksandar Todorovic
SET ACCELERATION_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH> <acceleration mode [CONSTANT|LINEAR] default:LINEAR>
25 1 Aleksandar Todorovic
26 6 Aleksandar Todorovic
h3. Description:
27 6 Aleksandar Todorovic
28 3 Aleksandar Todorovic
Sets the acceleration method of the selected motor.
29 1 Aleksandar Todorovic
30 6 Aleksandar Todorovic
h3. Example:
31 1 Aleksandar Todorovic
			
32 1 Aleksandar Todorovic
SET ACCELERATION_MODE LINEAR
33 3 Aleksandar Todorovic
34 6 Aleksandar Todorovic
h2. SET MOTOR_MODE
35 6 Aleksandar Todorovic
36 1 Aleksandar Todorovic
SET MOTOR_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH> <motor mode [INTERLEAVE|MICROSTEP|SINGLE|DOUBLE] default:double>
37 1 Aleksandar Todorovic
38 6 Aleksandar Todorovic
h3. Description:
39 3 Aleksandar Todorovic
40 1 Aleksandar Todorovic
Sets the motor mode of the selected motor.
41 1 Aleksandar Todorovic
42 6 Aleksandar Todorovic
h3. Example
43 6 Aleksandar Todorovic
44 3 Aleksandar Todorovic
SET MOTOR_MODE INTERLEAVE
45 1 Aleksandar Todorovic
46 6 Aleksandar Todorovic
h2. SET MAX_SPEED
47 6 Aleksandar Todorovic
48 1 Aleksandar Todorovic
SET MAX_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH> <unsigned int (capped with motor constraints)>
49 1 Aleksandar Todorovic
50 6 Aleksandar Todorovic
h3. Description:
51 1 Aleksandar Todorovic
52 1 Aleksandar Todorovic
Sets the max motor speed of the selected motor.
53 1 Aleksandar Todorovic
54 6 Aleksandar Todorovic
h3. Example:
55 1 Aleksandar Todorovic
56 1 Aleksandar Todorovic
SET MAX_SPEED BOTH 40
57 3 Aleksandar Todorovic
58 6 Aleksandar Todorovic
h2. SET ACC_SPEED
59 6 Aleksandar Todorovic
60 3 Aleksandar Todorovic
SET ACC_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH> <unsigned int>
61 1 Aleksandar Todorovic
62 6 Aleksandar Todorovic
h2. Description:
63 1 Aleksandar Todorovic
64 3 Aleksandar Todorovic
Sets the acceleration speed of the selected motor.
65 1 Aleksandar Todorovic
66 6 Aleksandar Todorovic
h2. Example:
67 1 Aleksandar Todorovic
68 3 Aleksandar Todorovic
SET ACC_SPEED RIGHT 10
69 1 Aleksandar Todorovic
70 6 Aleksandar Todorovic
h2. GET ACCELERATION_MODE
71 6 Aleksandar Todorovic
72 6 Aleksandar Todorovic
<pre>
73 3 Aleksandar Todorovic
GET ACCELERATION_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH>
74 6 Aleksandar Todorovic
</pre>
75 1 Aleksandar Todorovic
76 6 Aleksandar Todorovic
h3. Description:
77 1 Aleksandar Todorovic
78 1 Aleksandar Todorovic
Returns the current acceleration mode.
79 3 Aleksandar Todorovic
80 6 Aleksandar Todorovic
h3. Example:
81 1 Aleksandar Todorovic
82 1 Aleksandar Todorovic
GET ACCELERATION_MODE BOTH
83 3 Aleksandar Todorovic
84 6 Aleksandar Todorovic
h2. GET MOTOR_MODE
85 6 Aleksandar Todorovic
86 3 Aleksandar Todorovic
GET MOTOR_MODE <motor [LEFT|RIGHT|BOTH] default:BOTH>
87 1 Aleksandar Todorovic
88 6 Aleksandar Todorovic
h3. Description:
89 3 Aleksandar Todorovic
90 1 Aleksandar Todorovic
Returns the current motor mode.
91 3 Aleksandar Todorovic
92 6 Aleksandar Todorovic
h3. Example:
93 1 Aleksandar Todorovic
94 3 Aleksandar Todorovic
GET MOTOR_MODE
95 1 Aleksandar Todorovic
96 6 Aleksandar Todorovic
h2. GET MAX_SPEED
97 6 Aleksandar Todorovic
98 1 Aleksandar Todorovic
GET MAX_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH>
99 3 Aleksandar Todorovic
100 6 Aleksandar Todorovic
h3. Description:
101 3 Aleksandar Todorovic
102 1 Aleksandar Todorovic
Returns the current max motor speed.
103 3 Aleksandar Todorovic
104 6 Aleksandar Todorovic
h3. Example:
105 1 Aleksandar Todorovic
106 1 Aleksandar Todorovic
GET MAX_SPEED BOTH
107 1 Aleksandar Todorovic
108 6 Aleksandar Todorovic
h2. GET ACC_SPEED
109 6 Aleksandar Todorovic
110 1 Aleksandar Todorovic
GET ACC_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH>
111 3 Aleksandar Todorovic
112 6 Aleksandar Todorovic
h3. Description:
113 1 Aleksandar Todorovic
114 3 Aleksandar Todorovic
Returns the current acceleration speed.
115 1 Aleksandar Todorovic
116 6 Aleksandar Todorovic
h3. Example:
117 1 Aleksandar Todorovic
118 3 Aleksandar Todorovic
GET ACC_SPEED
119 1 Aleksandar Todorovic
120 6 Aleksandar Todorovic
h2. GET CONTROLLER_MAX_SPEED
121 6 Aleksandar Todorovic
122 1 Aleksandar Todorovic
GET CONTROLLER_MAX_SPEED <motor [LEFT|RIGHT|BOTH] default:BOTH>
123 1 Aleksandar Todorovic
124 6 Aleksandar Todorovic
h3. escription:
125 1 Aleksandar Todorovic
126 3 Aleksandar Todorovic
Returns the max controller speed
127 1 Aleksandar Todorovic
128 6 Aleksandar Todorovic
h3. Example:
129 1 Aleksandar Todorovic
130 1 Aleksandar Todorovic
GET CONTROLLER_MAX_SPEED RIGHT
131 1 Aleksandar Todorovic
132 6 Aleksandar Todorovic
h2. RELEASE
133 6 Aleksandar Todorovic
134 3 Aleksandar Todorovic
RELEASE <motor [LEFT|RIGHT|BOTH] default:BOTH>
135 1 Aleksandar Todorovic
136 6 Aleksandar Todorovic
h3. Description:
137 1 Aleksandar Todorovic
138 3 Aleksandar Todorovic
Releases the motor coils.
139 1 Aleksandar Todorovic
140 6 Aleksandar Todorovic
h3. Example:
141 3 Aleksandar Todorovic
142 1 Aleksandar Todorovic
RELEASE RIGHT
143 1 Aleksandar Todorovic
144 6 Aleksandar Todorovic
h2. CLEAR
145 6 Aleksandar Todorovic
146 3 Aleksandar Todorovic
CLEAR <motor [LEFT|RIGHT|BOTH] default:BOTH>
147 1 Aleksandar Todorovic
148 6 Aleksandar Todorovic
h3. Description:
149 1 Aleksandar Todorovic
150 3 Aleksandar Todorovic
Clears selected motors order queue. The currently executing order is not affected.
151 1 Aleksandar Todorovic
152 6 Aleksandar Todorovic
h3. Example:
153 1 Aleksandar Todorovic
154 3 Aleksandar Todorovic
CLEAR
155 1 Aleksandar Todorovic
156 6 Aleksandar Todorovic
h2. STOP
157 6 Aleksandar Todorovic
158 3 Aleksandar Todorovic
STOP <motor [LEFT|RIGHT|BOTH] default:BOTH>
159 1 Aleksandar Todorovic
160 6 Aleksandar Todorovic
h3. Description:
161 1 Aleksandar Todorovic
162 3 Aleksandar Todorovic
Immediately stops the selected motors and clears their order queue.
163 1 Aleksandar Todorovic
164 6 Aleksandar Todorovic
h3. Example:
165 1 Aleksandar Todorovic
166 3 Aleksandar Todorovic
STOP LEFT