#!/usr/bin/env python
# -*- coding: utf-8 -*-

# move_forward.py
# Author: <NAME>
# Date: 2018/10/03

# import modules
import time
import whillpy

# initialize Whill by providing the name of the serial port
whill = whillpy.connect(port='/dev/ttyUSB0')

# move straight for defined steps
steps = 10
for _ in range(steps):
    whill.move(straight=10, turn=0)
    time.sleep(0.2)

#!/usr/bin/env python
# -*- coding: utf-8 -*-

# move_forward.py
# Author: <NAME>
# Date: 2018/10/03

# import modules
import time
import whillpy

# initialize Whill by providing the name of the serial port
whill = whillpy.connect(port='/dev/ttyUSB0')

# move straight for defined steps
steps = 10
for _ in range(steps):
    whill.move(straight=10, turn=0)
    time.sleep(0.2)

#!/usr/bin/env python # -*- coding: utf-8 -*- # move_forward.py # Author: <NAME> # Date: 2018/10/03 # import modules # initialize Whill by providing the name of the serial port # move straight for defined steps