English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

does anybody know the code to make a roomba follow a wall. we are using a Java based program. the code to make the roomba go is roombacomm.drive([speed],[radius]). we are trying to get the roomba to follow a wall, either left or right, to get out of a maze.

some other samples of our code:
if ( roombacomm.bumpLeft()) {
roombacomm.pause(200);
roombacomm.spinRight(90); }
roombacomm.pause([duration]);


thank you for your help.

2007-02-20 03:20:34 · 1 answers · asked by Jason S 3 in Computers & Internet Programming & Design

1 answers

if bump_left
turn a little right (5 degrees)
go fwd
else
// not bump left
turn a little left to find the wall again.

2007-02-20 04:01:17 · answer #1 · answered by Grant d 4 · 1 0

fedest.com, questions and answers