View unanswered posts | View active topics It is currently Mon Dec 22, 2014 2:32 am






Reply to topic  [ 7 posts ] 
Autonomous with Cortex 
Author Message
Rookie

Joined: Thu Feb 11, 2010 1:59 pm
Posts: 11
Post Autonomous with Cortex
Recently upgraded to Cortex for my classroom. When we were running with the PIC we would program the robot, turn it off, unplug programming cable and put the robot on the floor (or in the arena or whatever) and turn the PIC on and it would just start. The Cortex doesn't seem to have this behavior whether I program with A-A or wirelessly. I guess in some cases it makes sense (debugging) but there are certainly situations were we will not have a computer with us (and so not be able to hit start on the debugging menu). Is there a way to change this behavior? Sorry if there is an obvious answer, I've been searching around for awhile and haven't come up with anything that works.

Thanks,
Bill


Thu Jan 12, 2012 5:17 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Autonomous with Cortex
I'm not sure if you can make it behave exactly like the PIC, but you can run your program without having the cortex connected. If you have code that is not in a competition template, just turn the Cortex on. It will look for a joystick link, and if it doesn't find one, will start running your program. From what I remember from experience, the wait time is somewhere around 15 - 20 seconds.

_________________
sudo rm -rf /


Fri Jan 13, 2012 1:53 am
Profile
Rookie

Joined: Thu Feb 11, 2010 1:59 pm
Posts: 11
Post Re: Autonomous with Cortex
Thanks for the reply. My experience is that the code never runs when it can't find the computer or joystick. That coupled with all the wi-fi drops is making the debug cycle really clunky with lots of students following their robots with laptops tethered.

I'll look around for a jumper setting or a way to disable debugging...


Sat Jan 14, 2012 10:42 am
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Autonomous with Cortex
Really? How long have you waited after turning on the robot? Was your code in any sort of template?

_________________
sudo rm -rf /


Sat Jan 14, 2012 12:55 pm
Profile
Rookie

Joined: Thu Feb 11, 2010 1:59 pm
Posts: 11
Post Re: Autonomous with Cortex
I've since found that if I select "download via USB only" it then runs immediately when I turn the cortex on. So that''s good.


Mon Jan 16, 2012 12:13 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Autonomous with Cortex
That's correct, if you choose "USB Only", it will run your program right away. Keep in mind if you're using the joysticks, you cannot use this mode, since the Cortex will not try to establish a VEXnet connection at all.

In ROBOTC 3.05, the new Master firmware will allow the program to run after 15 seconds if "VEXnet or USB" is selected, even without a VEXnet connection. Depending on which version of ROBOTC you're running, the included Master firmware may not have this behavior.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Jan 17, 2012 3:04 pm
Profile
Rookie

Joined: Thu Feb 11, 2010 1:59 pm
Posts: 11
Post Re: Autonomous with Cortex
Does this mean that if running with Vexnet and the connection is dropped, it will continue to run the program.


Wed Jan 18, 2012 4:58 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 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:  
cron



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