|
Page 1 of 1
|
[ 7 posts ] |
|
| Author |
Message |
|
biw314
Rookie
Joined: Thu Feb 11, 2010 1:59 pm Posts: 10
|
 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 |
|
 |
|
magicode
Moderator
Joined: Tue Sep 14, 2010 9:19 pm Posts: 495
|
 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 pm Posts: 10
|
 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 pm Posts: 495
|
 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 pm Posts: 10
|
 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 am Posts: 383
|
 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.
|
| Tue Jan 17, 2012 3:04 pm |
|
 |
|
biw314
Rookie
Joined: Thu Feb 11, 2010 1:59 pm Posts: 10
|
 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 |
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 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
|
|