View unanswered posts | View active topics It is currently Wed Oct 01, 2014 10:28 pm






Reply to topic  [ 2 posts ] 
HELP 
Author Message
Rookie

Joined: Fri Apr 04, 2008 5:32 pm
Posts: 1
Post HELP
i need help with the vex microcontroller. i am using robotc for my programing. i loaded a program, just to test it (i am a novice) and it seems as if i cant load any other programs. it seems as if it is running the same program as the previous. it wont stop moving, according to our program, it is supposed to stop moving. i dont know what to do. is there a reset? or is my programming way off? i am using sample programs to test it so you think that they should help.


Fri Apr 04, 2008 5:37 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 439
Location: Pittsburgh, PA
Post 
First, I want you to download the robotc firmware onto the VEX by going to the ROBOT menu > Download Firmware.

Then, power cycle your VEX - turn the power switch to the OFF position, then to the ON position.

Next, try typing in a simple program like this:

Code:
task main()
{
     bMotorReflected[port2] = 1; // This is used if you want to flip a motor's direction

     motor[port3] = 127;
     motor[port2] = 127;
     wait1Msec(2000);
}


Note: in order for this code to work, your left motor should be plugged into Motor port 3, and your right motor should be on Motor port 2.

Make sure your robot is in the ON position, and then Compile and Download this program by going to the ROBOTC menu > Compile and Download (or just Download program if you've already compiled).

You can then RUN this program by clicking on the START button on the Program Debugger window that pops up. Or... you can run the program by switching your robot OFF, then ON. When your robot starts up, it will automatically run the program.



Also, please post your code so that I can see what's wrong with it.

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Use the ROBOTC Ticketing system

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Sat Apr 05, 2008 10:11 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.