magiccar 發表於 2018-5-2 23:50

程小奔用神經元模組控制速度Python範例

XTLxYCjb5F4Python 程式碼如下
from codey_global_board import *
import time
import math
import neurons_engine_map
import codey
import rocky
neu = neurons_engine_map
while True:
    temp = neu.neu_read("ULTRAS", "val", 1, [])
    if temp != None:
      codey.show(int(temp))
      Speed = int(temp/2)
      rocky.forward(Speed)
    time.sleep(0.05)在 mBlock V5 Python 模式下,貼上後,下載即可!

頁: [1]
查看完整版本: 程小奔用神經元模組控制速度Python範例