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

magicode

Moderator

Joined: Tue Sep 14, 2010 9:19 pmPosts: 496

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

biw314

Rookie

Joined: Thu Feb 11, 2010 1:59 pmPosts: 11

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

magicode

Moderator

Joined: Tue Sep 14, 2010 9:19 pmPosts: 496

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

biw314

Rookie

Joined: Thu Feb 11, 2010 1:59 pmPosts: 11

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

jbflot

Site Admin

Joined: Tue May 15, 2007 9:02 amPosts: 406

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.

Who is online

Users browsing this forum: No registered users and 2 guests

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