#!/bin/sh

# Not enough args
if [ -z $4 ]
then
echo Usage: $0 distance startAngle stopAngle increment
echo try $0 2 -65535 65535 5 for a giggle
echo I have the feeling that this only happens because of
echo floating point errors in turtle.c
echo 
exit 0
fi

angle=$2;

while [ `expr $angle "<" $3` = "1" ]
do
angle=`expr $angle "+" $4`

echo FD $1
echo RT $angle

done