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