Line 189... |
Line 189... |
189 |
while True: # set maximal motor speed |
189 |
while True: # set maximal motor speed |
190 |
key = pylirc.nextcode() ## preccessing the IR remote control commands. |
190 |
key = pylirc.nextcode() ## preccessing the IR remote control commands. |
191 |
|
191 |
|
192 |
if key == ['start']: |
192 |
if key == ['start']: |
193 |
running = True |
193 |
running = True |
- |
|
194 |
X.Reset() |
- |
|
195 |
X.Initialize() |
194 |
requested_speed = SPEED |
196 |
requested_speed = SPEED |
195 |
|
197 |
|
196 |
if key == ['faster']: |
198 |
if key == ['faster']: |
197 |
running = True |
199 |
running = True |
198 |
requested_speed = SPEED * 1.2 # runnig the motor at 120% of the base motor speed |
200 |
requested_speed = SPEED * 1.2 # runnig the motor at 120% of the base motor speed |