|
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
|