![]() |
How to program Sonar
Hey there ChiefDelphi, first post. Our team is trying to make a simple code that will turn our robot when it has a value of less than 10 inches. Anybody know how to (or a link to) coding sonar? first year team btw
|
Re: How to program Sonar
What program are you using to code your robot?
|
Re: How to program Sonar
This is the LabVIEW subforum.
It depends on what sensor you are using and which input-analog, I2C, SPI, etc. In general, you will measure the value returned by the sensor for 10 inches, then use a case statement that:
|
Re: How to program Sonar
http://imgur.com/A14Tgq0
This is always the code my team has used in order to get inches out of sonar, this is just off of memory. If I remember correctly the sonar is wired for 12C |
Re: How to program Sonar
Check out the examples under the help tab. They show you how to execute almost every function you could need on your robot ranging from drives to vision and sonar. All you need to do to use them is to drag and drop the vi after you open the example.
|
| All times are GMT -5. The time now is 06:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi