Go to Post The spirit of FIRST is about learning not just about winning. - MamaSpoldi [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 27-01-2008, 02:38
code_lacky code_lacky is offline
Registered User
AKA: Mark
FRC #0840
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: San Mateo, CA
Posts: 12
code_lacky is an unknown quantity at this point
The oddest error

So far this year we have been using Kevin's basic 3.0 code and it has been working great. However, at the end of last week the team decided it wanted it control out arm with encoders and pots. So we download the 3.0 code with gryo/encoder. We add all of our functions, set up the encoder /analog input codes , the whole spiel.
We compile it and mplab has no problems with the code, it compiles fine. Next we load the code onto our practice bots to play with the pots/encoders in order to get a hang of them. Before that the norm 3.0 code was on the practice bot and the bot was working fine. So we load the code and everything looks normal. We have all greens on the RC except for rc mode and radio bc it is not tethered to the oi. Then we tether it to the oi and the rc flips out. The programming state is flashing green red and the bot will not do anything. The computer feedback is null and we are stumped. Testing to see if it is the bot we reloaded the norm 3.0 code and it worked fine. We reloaded the 3.0 gyro/encoder code and the bot flips out again. We are stumped. Any advice is helpful
  #2   Spotlight this post!  
Unread 27-01-2008, 02:39
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: The oddest error

Does the voltage readout on the OI happen to say 8.2 or 8.3?
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 27-01-2008, 02:51
Alex.Norton's Avatar
Alex.Norton Alex.Norton is offline
Fidgetting
no team
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Ft. Collins, Colorado
Posts: 190
Alex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud of
Send a message via AIM to Alex.Norton Send a message via MSN to Alex.Norton
Re: The oddest error

Quote:
Originally Posted by jgannon View Post
Does the voltage readout on the OI happen to say 8.2 or 8.3?
I'm going to have to agree, sounds like a power on reset. Have you tried replacing the battery?
  #4   Spotlight this post!  
Unread 27-01-2008, 02:57
code_lacky code_lacky is offline
Registered User
AKA: Mark
FRC #0840
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: San Mateo, CA
Posts: 12
code_lacky is an unknown quantity at this point
Re: The oddest error

the battery was reading 13 point something volts with the multimeter (if that is what it is called) and it could not have been battery because we switched back the code to the plain 3.0 and it worked fine
  #5   Spotlight this post!  
Unread 27-01-2008, 03:07
Alex.Norton's Avatar
Alex.Norton Alex.Norton is offline
Fidgetting
no team
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Ft. Collins, Colorado
Posts: 190
Alex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud of
Send a message via AIM to Alex.Norton Send a message via MSN to Alex.Norton
Re: The oddest error

The reason for saying the battery was because the motors might be pulling different numbers of amps with the different code. Some code may be putting a much greater strain on the motors since it is holding an arm in a particular position and this is much more likely to be the encoder code and not the original code.

However, since apparently the battery is fine, I can't see a reason for this problem. We have had very similar things happen to us in the past but it has always been fixed with a simple battery change. One thing you might check is the resistance of the battery with your multimeter cause if the battery has a bad cell then when the battery has no load it looks fully charged but when put in the bot will drop very low very quick.

If that isn't it then search me, I haven't done a huge amount of programing and certainly don't know the controller as well as I could.
  #6   Spotlight this post!  
Unread 27-01-2008, 03:29
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: The oddest error

Quote:
Originally Posted by code_lacky View Post
the battery was reading 13 point something volts with the multimeter (if that is what it is called) and it could not have been battery because we switched back the code to the plain 3.0 and it worked fine
There was a bug discovered with the PIC18F8722 based robot controllers used since 2006. One of the symptoms of the bug is that the voltage will read 8.2 or 8.3 volts regardless of the actual battery voltage. Can you please check to see if this is happening with your controller? Would it be possible for you to zip up your build directory and send it to me?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #7   Spotlight this post!  
Unread 27-01-2008, 09:24
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: The oddest error

I have also been having odd errors. The 'Program State' light stays lit and the program doesn't run. The voltage is NOT 8.2.

What is odd is that the only apparent difference between a project that works and the project that doesn't is that I am using a new project name (Sensors2008 vs ifi_frc).

I have zipped the files and a diff.txt file I generated. There are actually 113 differences, but I can't seem to see any consistency.

However, in the ifi_frc project, I am able to get the encoder, gyro, ultrasonic detector and Banner IR switch all playing nicely together!

Thank you Kevin.
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
  #8   Spotlight this post!  
Unread 27-01-2008, 12:19
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: The oddest error

Quote:
Originally Posted by Jon236 View Post
What is odd is that the only apparent difference between a project that works and the project that doesn't is that I am using a new project name (Sensors2008 vs ifi_frc).
The difference might be that the build options aren't the same across the two projects.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 27-01-2008, 16:08
code_lacky code_lacky is offline
Registered User
AKA: Mark
FRC #0840
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: San Mateo, CA
Posts: 12
code_lacky is an unknown quantity at this point
Re: The oddest error

I will check tomorrow when we meet Kevin and I can zip up the build directory then and send it to you. Thanks for the help
  #10   Spotlight this post!  
Unread 27-01-2008, 17:23
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: The oddest error

the two projects are using different lib subdirectories, but that didn't make a difference.

I attached the zip file with the two projects and diff file.
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006

Last edited by Jon236 : 09-04-2008 at 22:27.
  #11   Spotlight this post!  
Unread 27-01-2008, 20:24
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: The oddest error

Quote:
Originally Posted by Jon236 View Post
What is odd is that the only apparent difference between a project that works and the project that doesn't is that I am using a new project name (Sensors2008 vs ifi_frc).
Jon,

The problem is that you didn't add ifi_frc.c to the Sensors2008 project.

Edit: I forgot to mention that you also need to build using the large code and data model.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #12   Spotlight this post!  
Unread 27-01-2008, 22:07
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: The oddest error

Thank you! It worked! Also, should we use multi-bank stacks?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
  #13   Spotlight this post!  
Unread 30-01-2008, 03:01
code_lacky code_lacky is offline
Registered User
AKA: Mark
FRC #0840
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: San Mateo, CA
Posts: 12
code_lacky is an unknown quantity at this point
Re: The oddest error

actually we fixed the error, there was an interupt channel for the ADC code that we did not uncomment out.
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
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
180:Error: syntax error help! seanl Programming 8 04-02-2007 11:31
stupid Array error: Error [1300] stack frame too l Validius Programming 7 27-01-2006 10:53
Php error on the portal Adam Y. CD Forum Support 1 06-07-2004 11:32


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

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