View unanswered posts | View active topics It is currently Thu Nov 27, 2014 8:46 pm






Reply to topic  [ 2 posts ] 
How do i get the Ultrasonic sensor distance for one side? 
Author Message
Rookie

Joined: Wed Dec 05, 2012 11:00 am
Posts: 9
Post How do i get the Ultrasonic sensor distance for one side?
I was wondering how do i program my ultrasonic to get the distance from one side. I can program it to check the continuous distance away from it with a while loop. I was wondering how to do this in one instance when the robot is not moving?


Tue Jan 01, 2013 6:04 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: How do i get the Ultrasonic sensor distance for one side
Can you specify exactly what your question is? To get the distance just once, use
Code:
SensorValue[ultrasonic sensor];

_________________
sudo rm -rf /


Tue Jan 01, 2013 10:02 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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



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