View unanswered posts | View active topics It is currently Mon Jan 22, 2018 12:34 pm






Reply to topic  [ 2 posts ] 
Autonomous not working 
Author Message
Rookie

Joined: Sun Apr 03, 2016 5:49 pm
Posts: 3
Post 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//


Sun Apr 03, 2016 6:34 pm
Profile
Expert

Joined: Thu Dec 01, 2011 12:07 am
Posts: 151
Post 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


Sun Apr 03, 2016 8:27 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.