If you are wonder how to program your NXT sensors in both Virtual and real world, It is better to see some examples that are provided by ROBOTC.
1- Open ROBOTC
2- Click "Help" from top left bar and and then click on "Open online help(Wiki)"
3- Click "NXT"
4- From General information, click on "Sensor Overview"
Then you can find an example for each sensor
Touch Sensor, Light Sensor, Sound Sensor, Ultrasonic (sonar) Sensor
That will save you a lot of Time!
Make sure to know which port is associated with each sensor in both virtual and real testing.
Virtual World output ports
No comments:
Post a Comment