Skip to content
Snippets Groups Projects
Commit a4376ccf authored by ft-Demo's avatar ft-Demo
Browse files

commit by robo pro coding

parent 06c899c5
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
</statement>
</block>
<block type="procedures_defnoreturn" id="~.#zx,4UWf^8MH5:w_.X" x="0" y="137">
<field name="NAME">fwd_async</field>
<field name="NAME">forward_async</field>
<statement name="STACK">
<block type="motor_set_speed" id="qSf=3L:|6{;sgW;Sd5P4">
<field name="instance_name">vv6o.D]}g0#Ew7C~xfQ1-7dv9-J9W4.H3uoY}xp[W</field>
......
......@@ -17,7 +17,7 @@ def stop_async():
TXT_M_M2_encodermotor.stop()
def fwd_async():
def forward_async():
global sp, deg, cm, calib_move, speed, calib_rotation
TXT_M_M1_encodermotor.set_speed(int(speed), Motor.CCW)
TXT_M_M1_encodermotor.start()
......
......@@ -63,7 +63,7 @@
<next>
<block type="import_function_noreturn" id="Y]9wEHd`N%(uvn=y^is)">
<mutation parentId="~.#zx,4UWf^8MH5:w_.X" parentFilename="lib/motor.py"/>
<field name="name">fwd_async</field>
<field name="name">forward_async</field>
<data>{"id":"~.#zx,4UWf^8MH5:w_.X","filename":"lib/motor.py"}</data>
<next>
<block type="util_wait_for" id="VC=SR$1?,yYpC8/x*x4T">
......
......@@ -5,7 +5,7 @@ from lib.servo import *
def test_motor_async():
print('motor async')
fwd_async()
forward_async()
time.sleep(1)
rotL_async()
time.sleep(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment