Go to Post If you want to change the culture sometimes you need to change a little yourself - Koko Ed [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 23-12-2008, 12:36
beefy1 beefy1 is offline
Registered User
None #2669
 
Join Date: Dec 2008
Location: Israel
Posts: 12
beefy1 is an unknown quantity at this point
Questions about ultrasonic

im using wpilib, are the pings automatically sent or i have to call this? please if you can, show me an example of code how to check if the robot is place by 2 inches from a wall.
  #2   Spotlight this post!  
Unread 23-12-2008, 13:17
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Questions about ultrasonic

Are you using LV or WR?
In C++, you have two options. You can repeatedly call the Ping() method, or you can set your sensor to automatic mode using SetAutomaticMode(true). Either way, after you've gotten at least one measurement back, use GetRangeInches or GetRangeMM to get the respective measurement.
  #3   Spotlight this post!  
Unread 30-12-2008, 22:59
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Questions about ultrasonic

And if you are using LabView, you can get the manual analog input and divide it by howmany volts the spec sheet says is per centimeter or meter.
  #4   Spotlight this post!  
Unread 02-01-2009, 20:35
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Questions about ultrasonic

It also depends on which ultrasonic sensor you are using. The Maxbotix sensor can deliver the distance as a voltage of 0 to 2.55 volts, corresponding to 0 to 255 inches. In that case you would just read the analog value.
__________________

I am N2IRZ - What's your callsign?
  #5   Spotlight this post!  
Unread 02-01-2009, 21:43
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,972
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Questions about ultrasonic

Quote:
Originally Posted by Don Rotolo View Post
It also depends on which ultrasonic sensor you are using. The Maxbotix sensor can deliver the distance as a voltage of 0 to 2.55 volts, corresponding to 0 to 255 inches. In that case you would just read the analog value.
How linear are they and is there a myopic zone?
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
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
Ultrasonic will not work with another Ultrasonic plz help Jackel148 Programming 10 10-05-2006 15:31
Questions about Championship RoboMadi Championship Event 9 17-03-2006 21:12
2 Questions about OI theCowboyKnight Control System 2 27-01-2005 11:38
questions about competition archiver 2000 2 23-06-2002 22:06
Questions about Battlecry Todd Derbyshire Off-Season Events 4 12-06-2002 23:16


All times are GMT -5. The time now is 19:29.

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