View unanswered posts | View active topics It is currently Sat Aug 02, 2014 6:10 am






Reply to topic  [ 2 posts ] 
Game light 
Author Message
Rookie

Joined: Thu Jan 03, 2013 2:24 pm
Posts: 1
Post Game light
RobotC virsion: 3.54
Cortex: VEXnet 802.11g

I just got the updated virsion of RobotC and now when I compile and download the Game light doesnt light up and the progame will only run when the robot is connected. Please help


Thu Jan 03, 2013 2:35 pm
Profile
Novice
User avatar

Joined: Sat Jul 10, 2010 3:06 pm
Posts: 86
Location: Roanoke, VA
Post Re: Game light
Are you using the competition template?
If so, this is expected behavior. The program only runs when connected to the VEXnet controller. To run autonomous mode, use a competition switch. The game light only is on when you're connected to a competition switch and enabled (IIRC).

If you're not using the competition template, and you want to run your program without being connected:
Try setting the program to run in autonomous mode:
Code:
bIfiAutonomousMode = true;

See documentation for this variable here:
http://www.robotc.net/wiki/VEX2_Functio ... on_Control

I haven't done much (strictly) autonomous programming with my VEX system in quite a while. The last time I did so was using a PIC (not a Cortex), so the variable I pointed to could be old. Still, it's worth a shot... :)

//Andrew

_________________
Check out my website! www.RoboDesigners.com

VRC Team 2190

Twitter: @RoboDesigners


Thu Jan 03, 2013 9:35 pm
Profile WWW
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.