View Single Post
  #3   Spotlight this post!  
Unread 25-03-2006, 06:54
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Radio Control and Ultrasonic Sensor

Another way of doing it is to break up the Arcade command into two sets of commands, reading the joystick value and driving the motors. Then whenever the ultrasonic sensor is reading a low value, only allow joystick values that drive backwards or away from the target. For forward joystick values, send stopped, the way you are doing now.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote