Go to Post You can lay out all the disclaimers that you want, but the bottom line is you are representing your team. - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Programming > WindRiver C++
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Delphi
ADVERTISEMENT

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-11-2009, 03: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
Send a message via Skype™ to FearlessLeader
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 03:26 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-11-2009, 09:39 PM
wt200999's Avatar
wt200999 wt200999 is offline
Registered User
AKA: Will
FRC #0870 (R.I.C.E.)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Long Island, New York
Posts: 184
wt200999 is an unknown quantity at this point
Send a message via ICQ to wt200999 Send a message via AIM to wt200999 Send a message via MSN to wt200999 Send a message via Yahoo to wt200999 Send a message via Skype™ 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)
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 03:21 PM
How to conect solenoids to the circuit board. and how to program it...??? arpitshah Pneumatics 6 01-13-2008 02:06 PM
How NOT to program wun Programming 10 11-08-2004 02:34 PM
How to program servos bstempi Programming 7 02-24-2004 12:45 PM


All times are GMT -5. The time now is 12:31 AM.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School