Go to Post When I saw the title of this thread ("Reverse Robotics"), I thought "what, you get six weeks to take apart a robot or something??" - Katie Reynolds [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: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
  #2   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.
  #3   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
  #4   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
  #5   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
  #6   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
  #7   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
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 23:43.

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