Go to Post Gracious Professionalism, it's hard to describe, but I sure know when I'm not living up to it. - rsisk [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-11-2009, 04:24 PM
FearlessLeader FearlessLeader is offline
Registered User
AKA: James Wittel
FRC #2753 (Team Overdrive)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2003
Location: NJ
Posts: 6
FearlessLeader is an unknown quantity at this point
How to program sonar

Our Team is using the LV-MaxSonar-EZ3

We are having a lot of trouble programing for the sonar.
Can anyone post some C ++ code that uses the sonar. As far as I have seen there is no sample code for the sonar.

Thanks a lot
__________________
Team Overdrive #2753 - FRC 2008/2009

FTC 2007/2008 world champions!
New Brunswick Eruption - Future Glory Award
Attending NJ Regional
Attending NYC Regional

www.teen-technology.org
www.JPEX-studios.com
www.team-overdrive.com
Past: FTC #74, FVC #3179

Last edited by FearlessLeader : 02-11-2009 at 04:26 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-11-2009, 10:39 PM
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 321
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: How to program sonar

It depends on how you have it wired. I am guessing you are using analog?

If so use the AnalogChannel class and use the AnalogChannel::GetVoltage() to get your voltage and multiply that value accordingly (a value you can find in the EZ3 datasheet)
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
Reply


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
How to program phneumatics? Skyman7 NI LabVIEW 4 02-05-2009 04:21 PM
How to conect solenoids to the circuit board. and how to program it...??? arpitshah Pneumatics 6 01-13-2008 03:06 PM
How NOT to program wun Programming 10 11-08-2004 03:34 PM
How to program servos bstempi Programming 7 02-24-2004 01:45 PM


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

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