Closed Loop
Closed loop control makes use of the wheel encoders to give feedback on how much the wheel has turned.
import board
import BBS
bot = BBS.StudioBot()
bot.forwardDistance(15, 50) #move 15cm at 50 percent power
bot.reverseDistance(15, 50)
bot.LeftTurn(90, 80) #turn 90 degrees at speed 80
bot.RightTurn(90,80) # turn 90 degrees at speed 80Last updated