View unanswered posts | View active topics It is currently Mon May 21, 2018 10:53 am

Reply to topic  [ 3 posts ] 
Sonar Application 
Author Message
User avatar

Joined: Wed Oct 08, 2008 2:09 pm
Posts: 5
Location: Brasil
Post Sonar Application
How can I messure distances higher than 70cm? It is the high value that I can get using RobotC, while using the original firmware I can get about 200cm.

Thanks in Advance.

Thu Oct 09, 2008 7:59 am

Joined: Wed Jun 25, 2008 6:07 pm
Posts: 46
Post Re: Sonar Application
I believe the sonar sensor in RobotC returns distance in inches. A value of 70 inches is approximately 180 centimeters, which would be pretty consistent with what you've noticed.

Thu Oct 09, 2008 4:40 pm
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Sonar Application
That is very strange. My sonar always returns values between 0 and 255. If it were measuring in inches, the value would range from 0 to 100, not 70.
Do you have multiple sensors going at once? Did you try the "try me" program that comes with the firmware?


| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Thu Oct 09, 2008 5:13 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.