Go to Post (psst... what's the difference between a geek and a nerd?) - sonicbhoc [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-11-2007, 02:55
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Can't enter Vex autonomous mode when using MPLab

So my team competed at a Vex scrimmage this past weekend, and we ran into a problem -
Our robot never goes into autonomous mode on the field! Every other team there got it running, but not us. I found it's at least partially due to the fact that we did our coding in MPLab, while everyone else was using EasyC.

We downloaded master firmware v. 7, and used the latest MPLab template from here

Everything works fine with user control, but the robot never goes into autonomous mode.
We tried changing the Library files, with these results:
Vex_alltimers.lib - Runs autonomous only, no user control.
Vex_alltimers_auton_test.lib - Runs user control, goes in and out of autonomous via channel 5 button on the controller.
Vex_alltimers_wauton.lib - Runs user control only, no auton
Vex_alltimers_wauton_impr.lib - Runs user control only, no auton

The only ones actually tested on the field were wauton and wauton_impr. The team refused to take the chance of having no user control or having auton on a trigger, so we only tried the others during testing in the pits between matches.

We also tried the equivalent Vex_library*.lib files, with identical results.

Has anyone else encountered this problem and/or found a solution?
__________________


Which badges can you claim?
  #2   Spotlight this post!  
Unread 22-11-2007, 10:40
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,940
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: Can't enter Vex autonomous mode when using MPLab

Just to make sure - Did you use the Master code that is NOT for use with EasyC?

There are two versions of the Master code. One for use with EasyC, one for MPLab (or any other non-EasyC code, I presume).

Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
  #3   Spotlight this post!  
Unread 22-11-2007, 12:57
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Can't enter Vex autonomous mode when using MPLab

Jamie,

This is from mplab_2006_fvc_programming_guide.pdf (note that this document is unchanged from last year):

Quote:
When competing use :
‘Vex_alltimers_wauton_jmpr.lib’
or
‘Vex_library_wauton_jmpr.lib’.
These libraries use interrupt pin 6 to determine whether or not you want to run competition
code. The autonomous duration is set for 20 seconds. The operator match
duration is set for 2 minutes and 30 seconds.
Emphasis mine.

You need to have interrupt jumper 6 installed to have an autonomous mode.

If asked, the Technical Director for your tournament should have known this.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #4   Spotlight this post!  
Unread 23-11-2007, 00:43
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Re: Can't enter Vex autonomous mode when using MPLab

Sorry, forgot to mention -

We did use the jumper. Tried it in every port, no luck with any of 'em.
__________________


Which badges can you claim?
  #5   Spotlight this post!  
Unread 23-11-2007, 01:16
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Can't enter Vex autonomous mode when using MPLab

I haven't looked at the vex MPLab code in a while (that'll be changing shortly) but if it's going off interrupt 6, are you sure you're not accidentally mangling that bit in your code somewhere? The aliases file tells me it's PORTBbits.RB7, aliased as rc_dig_int6. If you're doing anything with these somewhere in your own code, it could account for the wackiness. Similar wackiness could probably occur if you're doing anything with TRISB and as a remote possibility, any of the INTCON registers.

Looking at the rest of the code, you can't really screw up the setting of the autonomous mode bit, but you can screw up actually going into autonomous mode if you've made improper changes to ifi_aliases.h, main.c, or user_routines_fast.c. Since it sounds like it's going into autonomous mode with the channel 5 trick, I think you're best off making sure that you're getting a proper value from interrupt 6. You should just be able to toss in:
printf("%2x\n", rc_dig_int6);
somewhere to read the value you're getting from interrupt 6. Then put the jumper in and out and make sure it's changing properly. If it's not... well then you know you're doing something wrong somewhere, or you're got a bad controller.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enter the Autonomous mode? CompMaster Programming 5 17-02-2005 19:12
Using REAL ENGLISH in autonomous mode??? RIgnazio Programming 14 17-02-2005 17:19
What type of autonomous mode program are you using? SilverStar Programming 1 21-01-2004 18:48
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24
Can't figure out auton mode TangoBravo1318 Programming 1 20-02-2003 10:06


All times are GMT -5. The time now is 19:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi