Baffled! Idle loop NOT working!
Page 1 of 1

Author:  fizxguy [ Wed May 11, 2011 12:38 pm ]
Post subject:  Baffled! Idle loop NOT working!

Just baffled. My robotics class has switched to the cortex system and we are of course learning the "new" programming specifics for using the new joystick. Here is my dilemma. I downloaded this program on to my robot and it appeared to work fine. Now, it starts up completely ignoring the idle loop. The motor on port 4 runs as soon as the vexNet makes the connection.

task main()
while (time10[T1] < 12000)
motor[port2] = -vexRT(Ch3);
motor[port3] = vexRT(Ch2);
motor[port4] = 127;

motor[port2] = 0;
motor[port3] = 0;
motor[port4] = 0;

What could I be doing wrong?


Author:  bfeher [ Thu May 12, 2011 9:52 am ]
Post subject:  Re: Baffled! Idle loop NOT working!

Hi Ken,

Just capitalize the 'B' in "btn6U" in your idle loop.


Author:  fizxguy [ Thu May 12, 2011 2:18 pm ]
Post subject:  Re: Baffled! Idle loop NOT working!

Actually, here is what happened. I must have had the software on Vex 0.5 instead of 2.0 Cortex. Because when I capitalized the "B" I received compile errors. Once I made sure I was on all the correct settings it worked. Still, why would btn6U work for vex 0.5 microchip?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group