|Can You Help Me???
|Page 1 of 1|
|Author:||suwandi_wieming [ Mon Sep 17, 2007 5:55 am ]|
|Post subject:||Can You Help Me???|
Can you help me???
can you give me more detail about function of component at robot c...
if can,can you give me the example???
because,i'm not too understand about component robot c and the explaining about component not detail only telling not with example...
thank you so much...
|Author:||starwarslegokid [ Mon Sep 17, 2007 11:34 pm ]|
To look at a description of each component, double click on a category in the Code Templates Toolbar. It will give you a explanation and examples of the different components.
Also, make sure that you are in expert mode. To change this go to Window/Menu Level/Expert in the menu
Hope this helps
|Author:||suwandi_wieming [ Tue Sep 18, 2007 1:50 am ]|
something I do not understand...
example : nmotorPIDSpeedCtrl. it say for regulation...
regulation for what???
Can you give me a simple program,how to save data at nxt???
for example:I want to save number intensity of light sensor...
thank you very much...
|Author:||vnguyen [ Tue Sep 18, 2007 9:18 am ]|
nMotorPIDSpeedCtrl regulates the speed that you set. Normally, a motor will not run perfectly. If you set it to 50, it will try to go 50, but there are instances where the gears have friction, or some other design issue and regulating the motor power will ensure that the robot is going with the motor power level that you set.
This will enable Speed Control for motor C. All you need to do now is to set a power level for motor C. If you would like some tutorials, please go to the robotc.net main site, and go through the Preview for Teaching ROBOTC for Mindstorms. It contains many examples and walk-throughs to show you the basics of how to program and use ROBOTC.
If you want to save data, you can use a variable to store the value.
Variables have types. For example:
int - for integer
float - for numbers containing decimals
string - for a string of characters
boolean - for boolean "true" or "false" values
An example of storing of a value would be this (assuming you went to ROBOT > MOTORS AND SENSORS SETUP to set up your "lightSensor"):
This is a simple program. When run, it takes the current value that the light sensor is reading, then it compares that value to 45. If it's less than 45, it will go forward for 2 seconds. Otherwise, it will run backward for 2 seconds.
|Author:||suwandi_wieming [ Wed Sep 19, 2007 12:27 am ]|
|Post subject:||thanks vnguyen|
thanks for answer my question...
I mean if I run the program and I save data of light sensor and then after I run,I turn off the nxt and then I turn on again,and I need the data that I already save...
how can I make it???
for example : I run a program and then I save data sample of light sensor...and after I turn Off the Nxt I turn On again and I need my data sample of light Sensor again...
How can I make the program???
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group