
Re: vex cortex motor port 1 and motor port 10
These two lines are where your problem lies. You are referencing channel 5, but the newer VEXNet Joystick controller does not use a channel 5; channels 1-4 refer to the X and Y axes of the two joysticks, but channels 5 and 6 refer to the rear buttons on the
older remote control. It is probably returning a value of 0, which is turning your motors off every time the program loops (and it loops extremely quickly).
The program will turn the motors on if the button is pressed, then almost immediately turn them off (milliseconds of difference in time). The reason the motors are humming is because they are being turned on and off so fast; they may turn very slowly, or they may do nothing at all depending on the weight of your robot, friction, gearing, etc. To test if this is the only problem, I would suggest commenting out the two lines I've posted and run the program without that; you can then reassign the ports as need be.
There is also a full listing of the
current VEXNet commands used in ROBOTC on our wiki.
_________________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