Thread: Ultrasonics
View Single Post
  #2   Spotlight this post!  
Unread 06-06-2006, 10:56
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Ultrasonics

The way you want to run the ultrasonics is

void OperatorControl ( void )
{
while ( 1 )
{
StartUltrasonic ( 1 , 9 ) ; // Sensor1
Ultra1 = GetUltrasonic ( 1 , 9 ) ; // Sensor 1
StopUltrasonic ( 1 , 9 ) ; // Sensor 1
StartUltrasonic ( 2 , 10 ) ; // Sensor 2
Ultra2 = GetUltrasonic ( 2 , 10 ) ; // Sensor 2
StopUltrasonic ( 2 , 10 ) ; // Sensor 2
}
}