Go to Post Remember to drive it like you stole it but be sure that it is in OVERDRIVE. - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-11-2011, 22:13
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Programming old Innovation FIRST boards

A mentor on my team wanted to know if we could set up an old robot (2001) to run again. He told me that the hardware is still fully operational, but it needs code. I told him I would look into it, but can't figure out the tools I would need. I had not heard of FIRST until long after we switched to the cRIOs and have very little idea where to start other than C++ so any information is appreciated. Some specific questions I have are:

Is this even remotely possible?

Does the board need to be imaged like the cRIO? If so, how would I go about doing that?

Would using the new C++ WPILib code not work on the board, or is it backwards-compatible? Will the Windriver software be supported?

It isn't like this project is of any urgency, but I would be interested to see whether it's possible and how it is done. Thanks for the feedback!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-11-2011, 23:42
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programming old Innovation FIRST boards

The WPILib is NOT supported. The pre 2009 documents and code can be found here: http://kevin.org/frc/ and here: http://www.ifirobotics.com/first-legacy.shtml Keep in mind, they are written in C, not C++.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-11-2011, 00:18
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: Programming old Innovation FIRST boards

Quote:
Originally Posted by davidthefat View Post
Keep in mind, they are written in C, not C++.
This is not correct. IFI equipment from 2001 was programmed in PBASIC. The very bottom of the linked page at IFI has the tools you need to program the 2001 RC. You'll need the PBASIC Stamp Editor to get started, and there's lots of other good documentation there too.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-11-2011, 10:43
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: Programming old Innovation FIRST boards

Hey guys, thanks for the reply! I know how to program in C and am looking into the PBASIC. Any chance there is a way to make the 2001 robot controller work with C that anybody knows of, sort of like imaging the cRIO so you can use the updated WPILib? Or is this a hardware support issue? Sorry if my questions are obvious or poorly worded, after a couple hours of research, I'm still a little sketchy on the details. Thanks!
Reply With Quote
  #5   Spotlight this post!  
Unread 02-11-2011, 11:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,830
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming old Innovation FIRST boards

No way.
You can only use PBASIC with the 2001 IFI robot controller's Basic Stamp microcontroller.
The language is hardware based.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-11-2011 at 11:27.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-11-2011, 11:33
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming old Innovation FIRST boards

Quote:
Originally Posted by Sconrad View Post
Hey guys, thanks for the reply! I know how to program in C and am looking into the PBASIC. Any chance there is a way to make the 2001 robot controller work with C that anybody knows of, sort of like imaging the cRIO so you can use the updated WPILib? Or is this a hardware support issue? Sorry if my questions are obvious or poorly worded, after a couple hours of research, I'm still a little sketchy on the details. Thanks!
I'm pretty sure this is a hardware support issue. In case you're wondering, the microcontroller is a PIC 18 (either F8520 in 2004-2005 or F8722 in 2006-2008). I'm pretty foggy on details regarding the older (BASIC) controllers (this is before my team even existed, let alone my membership), but resources are available regarding that control system, and they appear to have everything you need with regard to learning about them/programming them. I do also know a thing or two about the new(er) model controllers (programmed in C).

If you need some resources on programming those (C) controllers, I have some links in this post that you should probably check out. You can also find lots of information about the control system (click on a certain part for more information) and the RC on IFI's website. If you need the software to program the controllers, I have links for finding them in this post, and Kevin Watson (the guy who wrote the old FIRST libraries) has tons of resources from various years. Of course, the easiest thing to do would be to find the disc that came in the KOP a few years back that had all the software on it already.

Good luck!
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android

Last edited by plnyyanks : 02-11-2011 at 11:46. Reason: typo/clarification
Reply With Quote
  #7   Spotlight this post!  
Unread 02-11-2011, 11:43
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: Programming old Innovation FIRST boards

Guys, please be careful. You're responding with incorrect and/or misleading information and this is going to be confusing to the original poster.
Quote:
Originally Posted by plnyyanks View Post
In case you're wondering, the microcontroller is a PIC 18
No, it's not a PIC. As Mark mentioned above, the user processor in the really old IFI equipment (pre-2004) is a BASIC Stamp, from Parallax, programmed in PBASIC. Also as Mark pointed out, this is a hardware thing - there's no way to use C on those old controllers no matter what you do.
Quote:
Originally Posted by plnyyanks View Post
If you need some resources on programming those (C) controllers, I have some links in this post that you should probably check out. You can also find lots of information about the control system (click on a certain part for more information) and the RC on IFI's website. If you need the software to program the controllers, I have links for finding them in this post, and Kevin Watson (the guy who wrote the old FIRST libraries) has tons of resources from various years. Of course, the easiest thing to do would be to find the disc that came in the KOP a few years back that had all the software on it already.
This is good info for RCs from 2004 and on. Just to clarify though, none of those links are useful for a 2001 RC (I know you qualified it by saying that it was for the C-based controllers, but I want to make sure that it is clear that this applies to 2004 RCs and later only). Kevin Watson's stuff is great but it's for the 2004 and later controllers; it will be no use for 2001-2003 controllers.

Sconrad, the best place for you to get everything you need is the previously-linked Innovation FIRST page. Go to the bottom and look at the resources under "FRC Documentation for 2001 - 2003". It should have everything you need.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-11-2011, 11:56
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming old Innovation FIRST boards

Quote:
Originally Posted by Dave Flowerday View Post
No, it's not a PIC. As Mark mentioned above, the user processor in the really old IFI equipment (pre-2004) is a BASIC Stamp, from Parallax, programmed in PBASIC. Also as Mark pointed out, this is a hardware thing - there's no way to use C on those old controllers no matter what you do.
I understand that. I specified the years which had the PIC controllers, and they're only 2004-2008 (read the parenthetical after what you quoted). I have no idea what's inside the older BASIC controllers - way before my time. I'm sorry for any misunderstanding I may have caused with bad wording, but like I said, I'm far more knowledgeable about the control systems from 2004-08 than I am about the ones older that that.

Quote:
Originally Posted by Dave Flowerday View Post
Just to clarify though, none of those links are useful for a 2001 RC
Thanks for clarifying that - after rereading my post, I agree it was a little unclear about the distinctions.

Quote:
Originally Posted by Dave Flowerday View Post
Also as Mark pointed out, this is a hardware thing - there's no way to use C on those old controllers no matter what you do.
This is the truth. Sorry I may have alluded otherwise.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #9   Spotlight this post!  
Unread 02-11-2011, 16:43
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: Programming old Innovation FIRST boards

Thanks for the info guys. I kinda figured it would be a hardware thing but I had to try. I found out they actually want that one and the 1999 robot up and operational again. But they are also talking about upgrading one or both to a more recent control system (We are getting one of the new cRIO IIs and we have a C-based IFI system from what I think is 2007). Oh well, I was kind of looking forward to messing around with PBASIC and C...

Just a sidenote, while a lot of the links referred to the C IFI system, I did find some links and info on the PBASIC controllers so I appreciate the post plnyyanks!
Reply With Quote
Reply


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 03:09.

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