Go to Post Solutions are more likely to be implemented if you provide the solution along with the concern! - Jessica Boucher [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #136   Spotlight this post!  
Unread 18-04-2008, 09:57
lingomaniac88 lingomaniac88 is offline
Registered User
FRC #1554
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Long Island, NY / Cambridge, MA
Posts: 230
lingomaniac88 has much to be proud oflingomaniac88 has much to be proud oflingomaniac88 has much to be proud oflingomaniac88 has much to be proud oflingomaniac88 has much to be proud oflingomaniac88 has much to be proud oflingomaniac88 has much to be proud oflingomaniac88 has much to be proud of
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Greg Marra View Post
I've been using cRio's this semester. Compiling FPGA code takes from 5 minutes for a simple (simple!) program, to around 15 for a still-not-that-complex-but-does-more program. It finally made this xkcd comic make sense.
I assume that the robot code will be within the still-not-that-complex-but-does-more category, if not higher. I hope that I won't have to put together autonomous code between matches like I had to do this year. Fifteen minutes from the compiler to the robot. Wow.
__________________
"It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something."
-- Franklin Delano Roosevelt.
Reply With Quote
  #137   Spotlight this post!  
Unread 18-04-2008, 10:32
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: NEW 2009 Control System Released

Quote:
Originally Posted by lingomaniac88 View Post
I assume that the robot code will be within the still-not-that-complex-but-does-more category, if not higher. I hope that I won't have to put together autonomous code between matches like I had to do this year. Fifteen minutes from the compiler to the robot. Wow.
Note: cRios let you run code in two places. The FPGA handles low-level device communication and any simple integer maths you would like to do. However, you can pass it all up to the PowerPC (which code compilation doesn't take nearly as long on) and have the PowerPC twiddle with it and send commands back down to the FPGA.

So once you get your low-level stuff working on the FPGA, you may not need to tweak the FPGA code, and can just fiddle with your higher level algorithms on the PowerPC.
Reply With Quote
  #138   Spotlight this post!  
Unread 18-04-2008, 10:44
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: NEW 2009 Control System Released

Quote:
Originally Posted by Adam Y. View Post
I was doing research on FPGAs and found that other people were amazed at the length of time for a simple VHDL example to compile.
The first product I worked on at Motorola took 4 hours for a full build, and 20-30 minutes to recompile if you changed one line of code. It's really not uncommon for lengthy build times in the industry. It makes you a much better programmer because you really need to take the time to understand the changes you're making before you recompile.

A lot of people get spoiled on simple projects in college or for hobby purposes and get themselves into a "change code, compile, test, repeat" loop that just isn't possible on more complex software.

It's quite possible the more complex software that will likely accompany this new controller will come with longer build times than you're used to now with the IFI hardware.
Reply With Quote
  #139   Spotlight this post!  
Unread 18-04-2008, 11:48
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Greg Marra View Post
I've been using cRio's this semester. Compiling FPGA code takes from 5 minutes for a simple (simple!) program, to around 15 for a still-not-that-complex-but-does-more program. It finally made this xkcd comic make sense.
I admit to not being familiar with the acronyms you are using. VHDL? etc.

Is this specific to Labview or are you suggesting that even teams using Eclipse / etc and programming in C will see this kind of compile time?

IF that is the case, and C will take that long to compile for these applications, it may render it completely unusable if you have to do something that requires multiple compiles, like tuning a PID loop, unless you get more fancy and create the ability to adjust the constants with a pot / buttons etc.
Reply With Quote
  #140   Spotlight this post!  
Unread 18-04-2008, 11:57
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: NEW 2009 Control System Released

Someone questioned the cRIO's waterproofness... oh dear, let the water game speculation come flying now...
Reply With Quote
  #141   Spotlight this post!  
Unread 18-04-2008, 12:23
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Tom Line View Post
I admit to not being familiar with the acronyms you are using. VHDL? etc.

Is this specific to Labview or are you suggesting that even teams using Eclipse / etc and programming in C will see this kind of compile time?

IF that is the case, and C will take that long to compile for these applications, it may render it completely unusable if you have to do something that requires multiple compiles, like tuning a PID loop, unless you get more fancy and create the ability to adjust the constants with a pot / buttons etc.
VHDL is a hardware description language which is compiled differently than a traditional programming language. Instead of compiling down to machine code it compiles down to the logic level to be burned into a Field Programmable Gate Array (FPGA).
Reply With Quote
  #142   Spotlight this post!  
Unread 18-04-2008, 12:31
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Tom Line View Post
I admit to not being familiar with the acronyms you are using. VHDL? etc.

http://en.wikipedia.org/wiki/VHSIC_H...ption_Language

Depending on the rules, teams will either rarely touch the FPGA code, or never touch it. So the long compile times for compiling the VDHL code for the FPGA aren't an issue. Most likely FIRST will implement the disable logic in the FPGA. If that is the case, they won't want us to potentially mess up the disable code and therefore won't let us change it.

Most, if not all, development for our robots will be done for the 400 MHz processor. Which should have a quick compile process and a smokin' fast download.
Reply With Quote
  #143   Spotlight this post!  
Unread 18-04-2008, 12:39
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: NEW 2009 Control System Released

I am extremely excited about the ability to finally write code in C++. Other than what I've read on the site, does anybody know any specifics about how this will work? Will we be able to simply compile and transfer the file using the wireless into the controller? Will we have to use a specific IDE or will the compiler be useable across multiple IDEs provided we use the libraries given to us for the processor? My dream would be to write the robot code in the Microsoft Visual C++ IDE, which is better than MPLab by leaps and bounds, mostly due to Intellisense.
__________________
Reply With Quote
  #144   Spotlight this post!  
Unread 18-04-2008, 12:40
RoXmySoX's Avatar
RoXmySoX RoXmySoX is offline
Registered User
AKA: Cristina M. (Beaner)
FRC #2582 (PantherBots)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Texas
Posts: 32
RoXmySoX will become famous soon enough
Send a message via Yahoo to RoXmySoX
Re: NEW 2009 Control System Released

that is crazy!!!!

cant wait to test it out!
__________________
GO PANTHERBOTS! CLASS OF 08'

2008 Rookie Inspiration Award-Lone Star Regional
Reply With Quote
  #145   Spotlight this post!  
Unread 18-04-2008, 12:40
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Tom Line View Post
I admit to not being familiar with the acronyms you are using. VHDL? etc.
Uggg. I think I used the wrong acroynm. A hardware description language is completly seperate from C.
Quote:
Depending on the rules, teams will either rarely touch the FPGA code, or never touch it. So the long compile times for compiling the VDHL code for the FPGA aren't an issue. Most likely FIRST will implement the disable logic in the FPGA. If that is the case, they won't want us to potentially mess up the disable code and therefore won't let us change it.
That renders the point of having an FPGA moot.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
Reply With Quote
  #146   Spotlight this post!  
Unread 18-04-2008, 12:50
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Adam Y. View Post
That renders the point of having an FPGA moot.
Unless FIRST is open to adding in features that teams request, and provides a basic configuration that supports some nice sensors. I would be quite surprised if that FIRST didn't implement some logic to support quadrature encoders and only slightly less surprised if they didn't implement logic for sensors like Sonar also. Otherwise you are right.

It still would be nice if they let us program the FPGA ourselves.
Reply With Quote
  #147   Spotlight this post!  
Unread 18-04-2008, 12:54
NetElemental's Avatar
NetElemental NetElemental is offline
Registered User
AKA: James E.
FRC #0418 (Purple Haze)
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Austin, TX
Posts: 4
NetElemental is an unknown quantity at this point
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Adam Y. View Post
That renders the point of having an FPGA moot.
It absolutely does not - depending on what is done inside the FPGA, it could be a great tool - for example, if the WPI libraries were implemented on the FPGA, or the adc/encoder/gyro/competition mode code are on the FPGA, it is considerably faster than a microcontroller AND frees considerable processing room, as well as saves time coding. If the FPGA is designed to automatically do many of the low level functions that we as programmers normally have to wrangle with (like what Kevin Watson's libraries are used for), it would be an incredible help. Imagine never having to write code to interface with the camera, or have the gyro angle automatically calculated for us instead of having to do it ourselves - there are much greater problems that could then be tackled.
Reply With Quote
  #148   Spotlight this post!  
Unread 18-04-2008, 13:09
Richard Wallace's Avatar
Richard Wallace Richard Wallace is offline
I live for the details.
FRC #3620 (Average Joes)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1996
Location: Southwestern Michigan
Posts: 3,676
Richard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond repute
Re: NEW 2009 Control System Released

Quote:
Originally Posted by AustinSchuh View Post
... It still would be nice if they let us program the FPGA ourselves.
Quote:
Originally Posted by NetElemental View Post
... If the FPGA is designed to automatically do many of the low level functions that we as programmers normally have to wrangle with (like what Kevin Watson's libraries are used for), it would be an incredible help. Imagine never having to write code to interface with the camera, or have the gyro angle automatically calculated for us instead of having to do it ourselves - there are much greater problems that could then be tackled.
Some teams might like to program the FPGA. Other teams might like to design their own custom motors. FIRST wisely limits the degree to which teams can engineer at the component level, for several good reasons. Safety is a big one. Reasonable limits on work during build season are another. Keeping teams focussed on the game challenge, rather than component details, is still another.

I'd favor no team programming of the FPGA. [But of course I'm not a VHDL programmer.]

I also favor keeping the rule against custom motors. [And I am a motor designer.]
__________________
Richard Wallace

Mentor since 2011 for FRC 3620 Average Joes (St. Joseph, Michigan)
Mentor 2002-10 for FRC 931 Perpetual Chaos (St. Louis, Missouri)
since 2003

I believe in intuition and inspiration. Imagination is more important than knowledge. For knowledge is limited, whereas imagination embraces the entire world, stimulating progress, giving birth to evolution. It is, strictly speaking, a real factor in scientific research.
(Cosmic Religion : With Other Opinions and Aphorisms (1931) by Albert Einstein, p. 97)
Reply With Quote
  #149   Spotlight this post!  
Unread 18-04-2008, 13:39
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: NEW 2009 Control System Released

Quote:
Originally Posted by Richard View Post
I'd favor no team programming of the FPGA. [But of course I'm not a VHDL programmer.]
As an embedded software engineer I wouldn't want to comment on that until we know more about the architecture of the new system. Specifically where the "safety features" reside. There's some good ideas floating around about FPGA based counters for sensors such as encoders.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
Reply With Quote
  #150   Spotlight this post!  
Unread 18-04-2008, 14:07
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: NEW 2009 Control System Released

After reading a lot of the stuff available from FIRST, WPI, NI, and Wind River... and doing some integration/interpretation... and guessing, the following are some random opinions
  • . VxWorks is essentially (very!) unix-like operating system.
  • it uses a BSP (board specific package) as h/w abstraction layer so it can be targetted to multiple platforms. The BSP exists for the cRIO. The normal VxWorks comes with a bunch of different BSPs, we may end up with a stripped down version of the environment with only the cRIO - that would make sense.
  • there is a configuration process whereby you add in or remove components that you want in the RTOS build - standard stuff. Which means you can add rom-based file system, FTP, and other capability that is already available in the VxWorks kit as needed. There will be a standard config for competition, but for prototyping this opens up lots of stuff like application data logging during testing via WiFi. There are separate Broadcom device drivers available, for example, and other 3rd party driver packages.
  • The IDE (Workbench) is Eclipse-based. You have the ability to add REAL breakpoints and other stuff for debugging. You'll need to compile with debug flags, otherwise you only get assembler view. Compiling w/debug goes for any libraries you'd use which is why any FIRST provided added-value such as pre-canned drivers for gyro, et.al. would need to be in a controlled source form.
  • Both the Wind River C and GNU C compilers will work.
  • VxWorks is RTOS, applications are either integrated into the kernel or as application. Multitasking native with 256 priorities and round-robin scheduling within priorities (so essentially unlimited tasking until you run out of main memory).
  • a ton of documentation is available (I'm looking at 100mb of stuff), everything from getting started, to writing your own BSP (as if we'd ever need or want to do that!). For software mentors, start reading!
  • (ok weird factoid), interrupt latency is slightly better than RTLinux, at around ~70usec (published number was 100us but that was on a MPC8260 @200Mhz processor vs 400Mhz MCP52xx of cRIO... but should give a ball park figure).
  • fun stuff like a shell window on the target (cRIO) that you connect to and use from the development host [I guess like a console].
  • lots and lots of other good stuff if you're an applications programmer.
Someone (WPI?) will provide the pre-canned "driver" software for the common interface devices; gyro, camera, sonar, and the like similar to the WPILIB today. It will be provided in source form. This combined with a default VxWorks project will provide the default/base code for the robot next year. I haven't read far enough into "Wind River General Purpose Platform, VxWorks Edition - Getting Started" to see how much work it will be to change drivers, but if the pre-canned driver software is open-sourced then you could use that to slightly modify things as needed for your robot - but suspect that shouldn't be needed often.

Custom h/w and/or driver software will likely be discouraged the first year. Both would make it difficult to provide the type of deep generic support needed across all the teams. The programming of the FPGA will be canned and shouldn't be touched by individual teams again for the same reasons. Maybe in later years we'll be able to change this.

LabVIEW is built on top of what VxWorks provides, so C/C++ is actually the native method of building apps.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buying the 2009 control system BornaE FRC Control System 9 16-10-2008 17:16
2009 Control System Feature Wishlist tdlrali FRC Control System 47 17-06-2008 00:25
pic: 2009 Control System, Mounted Billfred FRC Control System 23 01-05-2008 19:02
2009 Control System Possibility? Racer26 Rumor Mill 121 25-04-2008 09:05
Forum Request: Post-2009 control system? Billfred CD Forum Support 3 22-04-2008 16:22


All times are GMT -5. The time now is 13:54.

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