"""A stub for the gopigo module."""

calls = []

def servo(angle):
	calls.append('servo({0})'.format(angle))

def set_speed(speed):
	calls.append('set_speed({0}'.format(speed))

def stop():
	calls.append('stop()')

def trim_write(trim):
	calls.append('trim_write({0})'.format(trim))

def us_dist(pin):
	calls.append('us_dist({0})'.format(pin))
	return 600  # approximate max range

@@ -153,16 +153,177 @@
 peed(%7B0%7D
+)'.format(speed))%0A%0Adef set_left_speed(speed):%0A%09calls.append('set_left_speed(%7B0%7D)'.format(speed))%0A%0Adef set_right_speed(speed):%0A%09calls.append('set_right_speed(%7B0%7D)
 '.format
@@ -369,16 +369,51 @@
 op()')%0A%0A
+def fwd():%0A%09calls.append('fwd()')%0A%0A
 def trim

Support for testing robot steering.