Go to Post After it took us weeks to machine sideplates for our 8WD, seeing their simple yet effective drivetrain was a huge "forehead slap" moment. - Chris is me [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 17-12-2008, 19:50
Wayne C.'s Avatar Unsung FIRST Hero
Wayne C. Wayne C. is offline
hey- I think we did pretty good?
FRC #0025 (Raider Robotix)
 
Join Date: Aug 2001
Rookie Year: 1997
Location: North Brunswick, N.J.
Posts: 1,530
Wayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond repute
Who is Programming the cRIO with C++ and what success are you having?

I am curious who is going the C++ route and whether you are encountering the problems we are having.

It has been a daily uphill battle with little satisfaction.

How is your team doing? Is a collaborative group in order?

Especially interested in your progress in getting your code to load into the unit.

WC
__________________
you want that robot to do what?

Raider Robotix- www.raiderrobotix.org
  #2   Spotlight this post!  
Unread 17-12-2008, 20:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,854
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: Who is Programming the cRIO with C++ and what success are you having?

I have a robot running on C++ code.
Any point in particular where it all goes south?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 17-12-2008, 21:47
Wayne C.'s Avatar Unsung FIRST Hero
Wayne C. Wayne C. is offline
hey- I think we did pretty good?
FRC #0025 (Raider Robotix)
 
Join Date: Aug 2001
Rookie Year: 1997
Location: North Brunswick, N.J.
Posts: 1,530
Wayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond repute
Re: Who is Programming the cRIO with C++ and what success are you having?

ok- here goes

we are able to get the default code up and running ok- wireless too. But for some reason the cRIO isn't taking any new code we try to load into it. For that matter it won't take a reload of the default either. I am sure it is a procedural thing but we haven't been able to figure it out. I am not the code guy so I can't help them too much.

It would be nice to actually be able to start playing with some code sequences....
__________________
you want that robot to do what?

Raider Robotix- www.raiderrobotix.org
  #4   Spotlight this post!  
Unread 17-12-2008, 23:15
sparrowkc sparrowkc is offline
Registered User
AKA: Mark
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Lees Summit
Posts: 114
sparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to behold
Re: Who is Programming the cRIO with C++ and what success are you having?

Have you done a format with the FRC Crio Imaging tool? There is a radio button that you have to tick to switch to C++ from labview.
  #5   Spotlight this post!  
Unread 17-12-2008, 23:45
Woodie Flowers Award
JDNovak JDNovak is offline
Mentor
AKA: John Novak
FRC #0016 (Bomb Squad)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 1996
Location: Mountain Home, AR
Posts: 52
JDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond repute
Re: Who is Programming the cRIO with C++ and what success are you having?

Windriver setup is a little tedious. I can't remember how long it took to understand it but here is what I can remember.

Hopefully you installed Windriver into the default location using the default workspace. Assuming that, go to C:\Windriver\docs\extensions\FRC and look at the C Programming Guide for FRC. It is definitely not finished but it gets updated when updates to C++ are released.

Starting at page 85 is the setup to connect to the cRIO and use debug etc. You should be able to open a program from the File/New/Example/VxWorks Downloadable Kernel module Sample Project like Iterative Robot Demo Main Program and then compile it with project/Build All.

i can't remember where the documentation is to set up the FIRST Downloader but go to Windrivers toolbar and go to Window/Preferences. In the list on the left select FIRST Downloader Preferences. Enter your team number and check the path to the file to download to the cRIO. My path is:

C:\Windriver\workspace\Iterativedemo\PPC603gnu\Ite rativeDemo\Debug\IterativeDemo.out

This is the compiler output file targeted for the PowerPC in the cRIO. If this path is right, when you go to the FIRST tab on the toolbar and select Download the file will be transferred to the cRIO solid state drive. You have to make sure the cRIO is configured for C++ with the Imaging tool and then reboot and the cRIO should load and run the program. If you reconfigure for Labview and back to C++ this file will load and run again. It is not written over by Labview output. You can remone it with Undeploy in the FIRST pulldown.

Hope this helps some.
  #6   Spotlight this post!  
Unread 18-12-2008, 09:03
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Who is Programming the cRIO with C++ and what success are you having?

Usually when something like that happens to me, it's because I'm editing the wrong files or uploading the wrong files.

*Make sure that the files you're editing in the editor are the same as the ones the linker/compiler is using
*Make sure you're uploading the latest output from the compiler to the robot. Too many times in past years I've uploaded the same .hex file to the robot over and over, and wondering why things weren't changing. I don't know what the binary compiler output for the Crio looks like, but verify that the date modifieds on all the files you send to the robot are recent.
  #7   Spotlight this post!  
Unread 18-12-2008, 10:56
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: Who is Programming the cRIO with C++ and what success are you having?

We have 7 programmers working in WindRiver!
Great Success!
If you need help with something i'd be glad to help.
Im on here a decent amount and i'm usually on the IRC chat too.

Have you read all of the configuration documentation for it?
there's about 2 hours of work worth of setting everything up.
Does WindRver connect to the cRIO device as a Remote System?
__________________

Last edited by Maxpower57 : 18-12-2008 at 11:01.
  #8   Spotlight this post!  
Unread 18-12-2008, 11:16
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: Who is Programming the cRIO with C++ and what success are you having?

Quote:
Originally Posted by Wayne C. View Post
Especially interested in your progress in getting your code to load into the unit.
Wayne,
We have a proto base up and running in C++, and we've been able to download code into FLASH (which stays there when the robot is powered off) and also run code from RAM in debug mode. So, I can tell you it is possible

I'm amazed though by how difficult the process is. The sheer number of things that need to be configured (and worse, the number of other settings that need to be left alone) is daunting. This is one particular reason that I feel the choice of Eclipse/Workbench for C++ development was a very poor one. It has ALL the bells and whistles and tools that a serious embedded software engineer needs, but most of this is unnecessary and overwhelming to high school students. I'm currently experimenting with a simpler development setup that hides a lot of the complexity; if I get something working there I'll release it for everyone to use.

We somehow ran into a problem last night where the compiled binary that was being downloaded for debugging into RAM was not the same one that got saved in FLASH when "deployed". We couldn't figure out why our robot didn't work right when we ran it from FLASH. Turns out there's 2 separate path settings in 2 different places in the IDE, and they were somehow each pointing to a different binary. That took a couple of experienced embedded software people a good half hour to find and solve. I'm not sure an average high school kid would have ever sorted that out.

The documentation is almost too extensive. It's hard to find what you need when it's buried in hundreds of pages of docs. Also, the C Programmer's Guide is pretty good for getting you going, but I dislike the order it's presented in. The stuff that you need to do first to get a project up and running is presented at the end of the document, somewhere around page 85. I find myself greatly missing the IFI docs, which were only 20 pages long or so and yet seemed to cover most of what you needed in clear, concise language.

Anyway, if you're struggling I'd recommend having your software people post questions here on CD - there's a contingent of us around slowly getting the C++ stuff to work that can probably help you out.
  #9   Spotlight this post!  
Unread 18-12-2008, 18:19
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Who is Programming the cRIO with C++ and what success are you having?

Dave -

I'd be very interested in hearing your ideas about making a more streamlined interface. I agree that the environment can be pretty daunting for programmers without that embedded programming experience.

Maybe there might be some programmers with some good eclipse plug-in experience who could help out...

Also, please feel free to send any comments about the documentation that you feel would make it more understandable. It is a huge amount of stuff and I always worry about the amount of time it will take people to find their way around it.

Thanks for helping
Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #10   Spotlight this post!  
Unread 18-12-2008, 18:22
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: Who is Programming the cRIO with C++ and what success are you having?

I was also dismayed at the complexity of the setup. Once you get over that hill, however, I haven't had too many problems.

If you're not familiar with C++ (or if you are but are unfamiliar with object-oriented programming), I'd check out a tutorial like www.learncpp.com. I remember had a bit of trouble wrapping my head around the new system at first. If you want to code more procedurally, WPI is developing a C-style wrapper for WPILib, which I don't believe is out yet.

Another great help is the C/C++ Programming Reference. And to echo Dave, a lot of us on CD are all pushing through this together, so here is a great place to post questions.
__________________
  #11   Spotlight this post!  
Unread 18-12-2008, 18:34
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Who is Programming the cRIO with C++ and what success are you having?

Also, in the next version we're trying to push out there will be a complete set of C functions to program the robot for those who don't want to try C++ on top of all the other new stuff. Although, I'd suggest giving C++ (at least) a quick try first since the interface is somewhat richer once you get the hang of it.

I'd expect that next version next week sometime.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #12   Spotlight this post!  
Unread 18-12-2008, 19:05
darkember darkember is offline
Registered User
AKA: Billy
FRC #0375 (Robotic Plague)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2007
Location: New York
Posts: 133
darkember is a glorious beacon of lightdarkember is a glorious beacon of lightdarkember is a glorious beacon of lightdarkember is a glorious beacon of lightdarkember is a glorious beacon of light
Re: Who is Programming the cRIO with C++ and what success are you having?

We had similar problems in loading code to the cRIO, but we figured it out and we are testing out different programs.
__________________
  #13   Spotlight this post!  
Unread 18-12-2008, 22:31
David Doerr's Avatar
David Doerr David Doerr is offline
Registered User
FRC #4478 (Materia Oscura)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Milford, Michigan, USA
Posts: 75
David Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud of
Re: Who is Programming the cRIO with C++ and what success are you having?

It took us a while to get up-to-speed with Wind River at first too, but after doing so we find it lots more fun to use than either MPLAB or LabVIEW. To me the primary hurdle is learning all the buttons and settings you need to get WR running. After you do that, learning to use C++, even if you've only programmed in C, is not difficult to do because you've got lots of example code and the WPILib to follow and learn from.

You do need to watch out, when working in RAM, to undeploy code that you've loaded into FLASH.

Once you get the hang of it, the turn-around time in developing code with WR and C++ is very fast.

I think learning WR is a worthwhile experience too. I had never used WR myself before. But I now work in an environment with lots of coders of embedded software -- when I look around at what they use -- Eclipse.
  #14   Spotlight this post!  
Unread 19-12-2008, 08:20
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: Who is Programming the cRIO with C++ and what success are you having?

Hi All,

I am getting the Windriver "Open Workspace" error about "filesystem is not lockable". Windriver was installed by the Administrator ID and made available for use by Power Users. When the user starts Windriver as Admin, no problems.

When a Power User starts Windriver, this error pops up and clicking on the "Yes" (to continue opening the workspace) does nothing.

I tried clearing the Read Only attribute to C:\windriver and all its folders/files but no change.

Any ideas? Help!
TIA
  #15   Spotlight this post!  
Unread 19-12-2008, 09:10
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Who is Programming the cRIO with C++ and what success are you having?

I, like Dave, believe the IDE setup documentation should be at the beginning of the programmers guide. Or in a separate file with lots of bold font screaming "DO THIS FIRST!"
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
Are you having problems with glare???!?! Salik Syed Programming 3 19-02-2006 23:42
If you are having a problem with one of the members from this site what do you do ? team66t-money General Forum 1 10-02-2005 22:16
If you are having a problem with one of the members from this site what do you do ? team66t-money Electrical 0 10-02-2005 22:06


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

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