Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   How to program sonar (http://www.chiefdelphi.com/forums/showthread.php?t=74171)

FearlessLeader 02-11-2009 04:24 PM

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 :)

wt200999 02-11-2009 10:39 PM

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)


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

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