|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#23
|
|
Re: Programming Minibot
This tread makes me chuckle a bit. Ok there are 2 languages really that you should use. either the LabVIEW with a FTC toolkit. or RobotC. Those who like C or Java or even LabVIEW programmers should be able to handle RobotC. It's really easy. say for example all you use are motors and a touch sensor. the code for that is this easy. All you have to use is a built in motors and sensors configuration program which you tell it the location of all of your hardware relative to the NXT. You won't have to use any specific templates due to the fact that the minibot is purely autonomous no outside control needed. for most robot's it's really this simple. Now from experience we aren't using the NXT system we are doing everything in hardware. that's why we have a 2.8 second minibot. sooo go at it as you wish.
wait1Msec(1200000) \\<--that's two minutes of wait time before enabling the while loop below so you wont have random wheels spinning the entire time. while(nTouchsenor=0) { motor[motorD]=100; motor[motorG]=100: } motor[motorD]=0; //or a negative number to drive it back down. motor[motorG]=0; |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|