Thread
:
Vex Ultrasonic Sensor not responding
View Single Post
#
7
18-12-2007, 16:48
Foster
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,392
Re: Vex Ultrasonic Sensor not responding
Input to digital port 11, output to Inter 1 is correct.
int distance;
StartUltrasonic(1,11);
while (1) {
distance = GetUltrasonic(1,11);
PrintToScreen("Distance = %d\r",distance);
}
That should do it.
Foster
View Public Profile
Find all posts by Foster
Find CD-Media Photos by Foster
Find CD-Media Papers by Foster