distance_and_speed module

move.distance_and_speed.distance_speed()

mav(motor, velocity) This is the speed. msleep(time) This is the distance. velocity is the mm/sec msleep is calculated in ms for 100cm do: mav(0, 100) this is 100mm/sec or 10cm/sec mav(3, 100) this is the other motor msleep(10000) this is 10000ms or 10s now the robot will travel 100cm

Function Implementation

1 def distance_and_speed():
2     print("100cm")
3     mav(0, 100)
4     mav(3, 100)
5     msleep(10000)
6     return