|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
DSRobotics
Rookie
Joined: Wed Jul 18, 2012 11:17 am Posts: 1
|
 Help
I am using robotC 3.0 with the VEx PIC system. Here is my code:
task main() { while(true) { motor[port2] = vexRT[Ch3Xmtr2]; motor[port3] = vexRT[Ch3Xmtr2]; } }
I don't get any error messages and it downloads fine but when I run it the motors don't move. Help!
|
| Wed Jul 18, 2012 2:24 pm |
|
 |
|
JohnWatson
Site Admin
Joined: Thu May 24, 2012 12:15 pm Posts: 389
|
 Re: Help
I have a couple of questions, are you trying to do remote control or autonomous? Are the crystals the same set (assuming you are using the older joystick controller and not the new one) and plugged in properly (with that code, they should be in the RX2 port of the PIC).
Make sure the battery is plugged in and both the PIC and the Joystick Controller are turned on and are communicating with one another. If you can give us your setup (which controller you are using, what is plugged into which, etc) it will help us to help you.
_________________Check out our Blog! And our Facebook page! Need help? Take a look at our Wiki and our Forums.I just met you, And this is crazy, But here's my code now, So fix it, maybe? ~ Carly Rae Jepsen parody
|
| Thu Jul 19, 2012 11:18 am |
|
 |
|
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 383
|
 Re: Help
Generally, your yellow receiver should be plugged into the RX1 port ont he PIC, and you should use the keywords "Ch2" and "Ch3", rather than the ones that end in "Xmtr2" to reference the "second transmitter".
|
| Mon Oct 01, 2012 3:00 pm |
|
|
|
Page 1 of 1
|
[ 3 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
|
|