Ops Manager Learn 4: Turn a Corner
9. Steering vs Turning
So far we've used the following robot methods for motor control.
forward()
left()
right()
There's another method that we could use: steer(left, right)
where left
and right
are motor power values between -100 and 100. With the steer method, we can implement all other methods:
steer(0,0)
=> stop()
steer(100,100)
=> forward()
steer(-100,-100)
=> backward()
steer(100,0)
=> right()
What will g.steer(-100,100) do?