ROBOTC.net forums
http://www.robotc.net/forums/

Autonomous not working
http://www.robotc.net/forums/viewtopic.php?f=63&t=13815
Page 1 of 1

Author:  faithjb [ Sun Apr 03, 2016 6:34 pm ]
Post subject:  Autonomous not working

In a few weeks I have a competition but can't get my program to work. I don't have a competition switch so I'm not using a competition template but the autonomous portion isn't working. It seems to be following the last remote command I give it. Here's a portion of the code:

While (1==1)
{
While (1==1)
{
If(vexRT[Btn5U]==1)
//joystick code//
}
While (1==1)
{
If(vexRT [Btn6D]==0)
{
SensorValue[rightencoder]=0;
Sensorvalue [leftencoder]=0;
While (Sensorvalue [rightencoder]<103.5
{
//motor on//

Author:  CARBOT [ Sun Apr 03, 2016 8:27 pm ]
Post subject:  Re: Autonomous not working

Please post questions in one area only. This one could be deleted and use: http://www.robotc.net/forums/viewtopic.php?f=11&t=13816

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/