我只是想知道是否有人可以帮助我。我通过Raspberry Pi控制机器人,使用Python,并想知道如何改变机器人向后移动的时间量。目前只有半秒钟,我希望是三秒钟。我已经列出了我目前使用的代码。如何更改机器人倒退的持续时间
import time
from gopigo import * # Has the basic functions for controlling the GoPiGo Robot
import sys # Used for closing the running program
now = time.time()
future = now + 0.500
while time.time() < future:
bwd() # Move backward
stop()
sys.exit()
'future = now + 3'? – roganjosh