The desktop client, client.c, allows one to issue a number of commands to the
robot.
The 'w' key invokes the drive() command in roomba/move.c. This command just
tells the roomba to drive, and there is no feedback on any sensor data that
might occur in the duration of the driving. Thus, a robot might end up ramming
an obstacle until a subsequent command is issued to the robot.
The 'n' key invokes the driveDistance() command in roomba/move.c. This command
drives the roomba a set distance of approximately one floor tile, continually
checking sensor data and driving until either the distance has been traveled or
until a sensor event occurs.
The drive() command is good for playing with the robot, but does not fit within
our structured programming paradigm. It may be worthwhile to:
1. Remove the 'w' command.
2. Print a warning statement whenever 'w' is used, reminding both users and
developers of the dangers of 'w'.
Original issue reported on code.google.com by
tanya.crenshawon 29 Jun 2013 at 8:51