|
Re: Code for Ultrasonic Sensor
In general, an ultrasonic sensor gives you a number. The number corresponds to distance. You can use that distance to (for example) calculate how far the robot needs to move, then move that distance.
For more specific instructions, it might be helpful if you specified which ultrasonic sensor you are using.
|