Thanks again for everyone telling me to go with the potentiometers, I just have a few (more) questions about them. As far as I know, I should program it like a light sensor, is that correct? And how do I program my RC period so that when I press down on a channel, it reads the section of the code telling it to move into position? I did look through the help file, but it is possible I may have missed something. Thanks again, me and my team really appreciate all the help we have received from the users of vexforum.com.
You will need to use a analog input to record the value.
Set up the following:
-port # (make sure it’s an analog port)
-variable to retrieve the # to (its between 0 and 1024)
-variable to retrieve RX Input
That should be all you need.
The code for Operator would be something along this line
Get Rx Input // set up RX # and RX channel (in this case the variable will be ‘Rx’)
If (Rx > 255) // Rx is the variable, and the part after it is waht you want the value to be
Get Analog Input // retrieve the value to your variable (in this care it will be ‘x’
If ( X <= Y) // X is variable, Y is the value you want the arm to go to
Set Motor // set up the port # and direction you want it to go
Get Analog Input // retrieve the value to your variable (in this care it will be ‘x’
I hope that clears things up a bit, if it doesn’t, PM me or post back here
Regards,
~Team Unlimited