use vexRT[Btn??], where ?? is the channel and button letter. The button value is 0 when not pressed, and 1 when pressed.
eg. to make an arm go up and down on channel 7 using the up and down buttons,
if(vexRT[Btn7U] == 1){
motor[arm] = 127;
else if(vexRT[Btn7D] == 1){
motor[arm] = -127;
else{
motor[arm] = 0;
}
I have had the same problem. Unless it has changed recently, I don’t think there is any support for print functions in RobotC.
When I was beta testing the cortex I used the UART to feed information back to the computer. You can use the VEX usb to serial cable, but you will need to convert from TTL to RS232. Then use a serial terminal like Realterm to capture the information to a file.
Although, I don’t think this is a very elegant way of doing it at all. Only did it this way because I had the set up already. There is probably a much easier solution out there.
I have now switched to EasyC after the major bug in RobotC 2.16.