Go to Post Lose a year of bumper making and everyone's a rookie again. - mrnoble [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 20-02-2006, 16:36
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
OI is getting bad data from RC and vice-versa

I am posting this question, late. What we are seeing with our robot controller and operater interface is that at times the OI will get bad data from the RC, and the RC will get bad data from the OI.

When we turn the robot on, sometimes it will give us a random RLOD, this is normally fixed with a simple power off and on.

The other time is when everything seems fine, but randomly the belts on our robot will start running, or it will start running in circles, even when on the OI the FlightSticks are unplugged, and thus it can't be the fact that the joysticks are sending data. Also, on the OI all the lights will go on, as in all the extra LED's under the Robot Feedback header, when not all of them should be lit up. If I am connected to the programming port, I will see that the output appears all scrambled, and I get random crap thrown to my terminal window.

I am thinking there might be a problem with the interrupt that it is not saving enough data personally, but I don't understand why this would cause it to die upon startup. luckily for us it is immediatly evident, according to the CMUcam thread there are others with the same problem, so my team is not the only one fighting with the code at the moment trying to get it to work without any problems.

Kevin Watson, you posted elsewhere something else to add to save in the pragma before the InterruptHandlerLow, maybe that could help us?

Any other things I should do? I am going to email IFIrobotics and see what they have to say about this problem, besides that I am wondering how we are going to go through the competition if our robot is malfunctioning.

Bert JW Regeer
Senior Programmer
__________________
My Blog!
  #2   Spotlight this post!  
Unread 20-02-2006, 16:56
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: OI is getting bad data from RC and vice-versa

Update: Emailed IFIrobotics, will wait for reply.
__________________
My Blog!
  #3   Spotlight this post!  
Unread 20-02-2006, 23:56
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: OI is getting bad data from RC and vice-versa

I was having a problem very similar to yours. I sent my copy of user_routines_fast.c off to Kevin Watson, and this is what he told me:
Quote:
Originally Posted by Kevin Watson
Uncomment this line: #pragma interruptlow InterruptHandlerLow save=PROD,section(".tmpdata")
Remove or comment out this line:#pragma interruptlow InterruptHandlerLow save=PROD
Everything seems to be working fine now, so that's the secret for anyone else who runs into this problem. Thank you, Kevin!
__________________
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

_
  #4   Spotlight this post!  
Unread 21-02-2006, 00:03
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: OI is getting bad data from RC and vice-versa

Quote:
Originally Posted by jgannon
I was having a problem very similar to yours. I sent my copy of user_routines_fast.c off to Kevin Watson, and this is what he told me:

Everything seems to be working fine now, so that's the secret for anyone else who runs into this problem. Thank you, Kevin!

No such luck for us, same problem. It will sporadically go in to chain fire mode, jsut keep hammering the piston til the air tanks empty, our battery indicators freeze at 8.2 and a joystick completely unrelated to drive becomes controller of the left PWMs. The pragma is right, so that wasn't it...
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #5   Spotlight this post!  
Unread 21-02-2006, 00:22
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: OI is getting bad data from RC and vice-versa

Quote:
Originally Posted by Matt Krass
No such luck for us, same problem. It will sporadically go in to chain fire mode, jsut keep hammering the piston til the air tanks empty, our battery indicators freeze at 8.2 and a joystick completely unrelated to drive becomes controller of the left PWMs. The pragma is right, so that wasn't it...
Ugh. That's no fun. What's with all the sporadic problems this year?
__________________
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

_
  #6   Spotlight this post!  
Unread 21-02-2006, 01:17
MichaelGoldfarb MichaelGoldfarb is offline
Registered User
AKA: Goldfarb
FRC #0312 (Heatwave)
Team Role: Programmer
 
Join Date: Aug 2004
Rookie Year: 2003
Location: St. Pete, FL
Posts: 11
MichaelGoldfarb is an unknown quantity at this point
Send a message via AIM to MichaelGoldfarb Send a message via MSN to MichaelGoldfarb
Re: OI is getting bad data from RC and vice-versa

Quote:
Originally Posted by jgannon
Ugh. That's no fun. What's with all the sporadic problems this year?
Haha, yes these PICS are definatly picky, as with every year.
__________________
I'm crazy!
  #7   Spotlight this post!  
Unread 21-02-2006, 05:36
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: OI is getting bad data from RC and vice-versa

Quote:
Originally Posted by Matt Krass
No such luck for us, same problem. It will sporadically go in to chain fire mode, jsut keep hammering the piston til the air tanks empty, our battery indicators freeze at 8.2 and a joystick completely unrelated to drive becomes controller of the left PWMs. The pragma is right, so that wasn't it...

That is what I am seeing as well. Thing is, once one unplugs the OI, and plugs it back in, everything is back to normal, sometimes.

Edit: Forgot to mention, I am allready using the different PRAGMA than the standard, I am allready getting it to save section(".tmpdata"). Kevin Watson in another thread suggested saving MATH or something like it as well.
__________________
My Blog!

Last edited by X-Istence : 21-02-2006 at 05:41.
  #8   Spotlight this post!  
Unread 22-02-2006, 09:18
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: OI is getting bad data from RC and vice-versa

Quote:
Recompile your code with either one of these libraries and verify if you see any difference. We made a simple change to the way that the high priority interrupt saves data according to the PIC18F8722 errata sheet. If this helps you let us know.



Regards,



Mark Lambert
I will reply asking if I can attach the new beta code he sent me for all others to try out as well.

Bert JW
__________________
My Blog!
  #9   Spotlight this post!  
Unread 27-02-2006, 22:58
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: OI is getting bad data from RC and vice-versa

We saw this as well with our robot when we were testing it out just prior to shipping. The voltage registered as 8.2 and the robot went crazy. It had been working prior to this and worked just fine later.

We have the pragma set up for .tmpdata and our code looks OK as far
as we can tell. We would like to hear about other peoples experiences so
we can make sure this does not happen in competition.
  #10   Spotlight this post!  
Unread 27-02-2006, 23:13
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: OI is getting bad data from RC and vice-versa

Quote:
Originally Posted by ericand
We saw this as well with our robot when we were testing it out just prior to shipping. The voltage registered as 8.2 and the robot went crazy. It had been working prior to this and worked just fine later.

We have the pragma set up for .tmpdata and our code looks OK as far
as we can tell. We would like to hear about other peoples experiences so
we can make sure this does not happen in competition.
It was identified as a bug in IFIs precompiled libraries, they've made a repaired version available at:
http://www.ifirobotics.com/rc.shtml#Programming

Also, I've heard some less than nice comments about IFI on this one, and I won't name names, but people, be nice, they do serious tailbreaking every year for this, and it was a new chip this year, between IFI and FIRST I think we've had one of the most bug free years so far and I'd be willing to be those griping programmers have made a mistake or too themselves. They're only human and I applaud them for getting us a fix as soon as they realized what was going on. Thanks IFI.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #11   Spotlight this post!  
Unread 27-02-2006, 23:40
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: OI is getting bad data from RC and vice-versa

Quote:
Originally Posted by Matt Krass
It was identified as a bug in IFIs precompiled libraries
...
I'd be willing to be those griping programmers have made a mistake or too themselves. They're only human and I applaud them for getting us a fix as soon as they realized what was going on. Thanks IFI.
To go a bit further, this is not an IFI bug. This is a Microchip bug in the actual design of the processor in the RC. Since replacing all those processors is not practical, IFI implemented a software workaround for the problem. So, anyone making disparaging comments about IFI is really misguided.
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


All times are GMT -5. The time now is 02:30.

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