View unanswered posts | View active topics It is currently Mon Oct 20, 2014 5:47 am






Reply to topic  [ 2 posts ] 
Help with RobotC Competition Control debugger 
Author Message
Rookie

Joined: Tue Apr 23, 2013 7:53 pm
Posts: 1
Post Help with RobotC Competition Control debugger
Hey,

Ive been trying to test if autonomous works with the competition control debugger built in to RobotC and so far nothing happens when i click autonomous.

Here is my code would appreciate it if you guys could tell me what i'm doing wrong

Code:
#pragma config(Motor,  port1,           port1,         tmotorVex393, openLoop)
#pragma config(Motor,  port10,          port10,        tmotorVex393, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

#pragma platform(VEX)

//Competition Control and Duration Settings
#pragma competitionControl(Competition)
#pragma autonomousDuration(20)
#pragma userControlDuration(120)

#include "Vex_Competition_Includes.c"   //Main competition background code...do not modify!

/////////////////////////////////////////////////////////////////////////////////////////
//
//                          Pre-Autonomous Functions
//
// You may want to perform some actions before the competition starts. Do them in the
// following function.
//
/////////////////////////////////////////////////////////////////////////////////////////

void pre_auton()
{
  // Set bStopTasksBetweenModes to false if you want to keep user created tasks running between
  // Autonomous and Tele-Op modes. You will need to manage all user created tasks if set to false.
     bStopTasksBetweenModes = true;

   // All activities that occur before the competition starts
   // Example: clearing encoders, setting servo positions, ...
}

/////////////////////////////////////////////////////////////////////////////////////////
//
//                                 Autonomous Task
//
// This task is used to control your robot during the autonomous phase of a VEX Competition.
// You must modify the code to add your own robot specific commands here.
//
/////////////////////////////////////////////////////////////////////////////////////////

task autonomous()                   
{   
 motor[port1] = 127;
 motor[port10] = 127;
 wait10Msec(30000);
}


/////////////////////////////////////////////////////////////////////////////////////////
//
//                                 User Control Task
//
// This task is used to control your robot during the user control phase of a VEX Competition.
// You must modify the code to add your own robot specific commands here.
//
/////////////////////////////////////////////////////////////////////////////////////////

task usercontrol()
{
   // User control code here, inside the loop

   while (true)
   {
     motor[port1] = vexRT[Ch2];
     motor[port10] = vexRT[Ch3];
   }
}


Tue Apr 23, 2013 10:20 pm
Profile
Rookie

Joined: Wed Sep 25, 2013 11:12 pm
Posts: 1
Post Re: Help with RobotC Competition Control debugger
I know this is late- but was it by chance not capitalizing "motor""

or did you find another solution?

Hope it worked.....ktow


Wed Sep 25, 2013 11:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Kern5566, romanti 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.