我只是想知道是否有人可以幫助我。我通過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