Go to Post FIRST is a worthwhile program to be involved in as an Adult mentor. But for me, it does bring its share of personal conflict. ..... Cuz' you know when Jan 4/5 comes round' I'll be itchin to go gang busters again. I'll never learn - PMGRACER [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-05-2006, 21:06
Ctx32 Ctx32 is offline
Registered User
no team
 
Join Date: Apr 2006
Location: Florida
Posts: 10
Ctx32 is an unknown quantity at this point
Ultrasonics

I have wrote the code for this over and over, This way and that way.
But I can't get 2 sonics to work at anytime.
I need 4 sonics to cover the 4 sides of my bot.(east-west-north-south)
Can someone help me solve this problem?
Calvin
  #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
}
}
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ultrasonics Ctx32 FIRST Tech Challenge 3 06-05-2006 14:32


All times are GMT -5. The time now is 10:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi