Jul 29, 2008, 2:04:53 PM7/29/08
to Systronix TrackBot
In a previous post, I had described that when running the
TrackbotCommonV2 demo code, and WarmBodyHunterTest on a SunSPOT
Trackbot, that WarmBodyHunterTest ran as expected, but Avoider and
Wanderer did not run as expected. The latter two applications would
make the robot go forward and backward, or do nothing, in little
chaotic fits, with no apparent pattern.
Since the hardware seemed to be running fine (other applications run
fine), I surmised from watching the LEDs that the sensor ranges must
be too long, as readings were very chaotic even when the robot was
sitting still. Reflected signals must be giving false readings...
Once I figured out where the sensor ranges are being set, I compared
WarmBodyHunterTest settings to Avoider settings. Sure enough,
WarmBodyHunter sets the corner, side and cliff sensors to short range
(1), while Avoider sets the corner sensors to 3 (long), the side
sensors to medium (2), and the cliff sensors to short (1).
After setting the sensor ranges to short range in Avoider, both
Avoider and Wanderer demos work as expected in long, 9-foot wide