View unanswered posts | View active topics It is currently Thu Oct 22, 2020 10:30 pm

Reply to topic  [ 2 posts ] 
touch sensor in virtual world 
Author Message

Joined: Thu Oct 31, 2013 9:08 am
Posts: 1
Post touch sensor in virtual world
I am new to virtual worlds and have a question. Is it possible to interact with certain sensors? For example I am builidng a line following program but I want it to start when I push the bump sensor switch and to stop when I push it again. In the virtual world, is it possible to simulate me pushing the sensor? I imagine this question also goes with light sensors etc. Is it possible to maually interact with the sensors?

Thu Oct 31, 2013 9:16 am
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Post Re: touch sensor in virtual world
Hi Jerry,
This is not currently possible. However, you can use the either the NXT's buttons or the buttons on the VEX LCD screen attachment (depending on which platform you're using) for this purpose.

After you Compile and Download your program, select Robot>>Debugger Windows>> and then either NXT Remote Screen or VEX Remote Screen.

See here for documentation on how to use the NXT buttons in your code:

See here for documentation on how to use the VEX buttons in your code:

Alternately, if you have a USB joystick or gamepad, you could use a joystick button to do the same thing.


Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT

Thu Oct 31, 2013 11:49 am
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:  

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