Go to Post "Magnificent" is the only appropriate adjective for a handlebar moustache. Kudos. - Lil' Lavery [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 04-02-2010, 22:41
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
FIRST TIME USING C++, Need help!

Hello,
We are team 2670 and this is our first year running C++, We used labview last year, however I had graduated from highschool and now helping the team. The students left over decided to use C++ as they are quite versed in the language. However we really need help since they don't know anything with regards to programming the robot. Now we have been able to use the simple robot template.

However, the problem is the robot template only provides the basic function, autonomous/teleop structure. We have no clue how to program the dashboard, or anything like that. So really, what I'm asking is: What EXACTLY do we need as the basic setup for coding our robot? So we are able to have the MyRobot.ccp program, however the other examples are just a mess. The other examples have dashboard files etc. It's too confusing.
Anyway, so we would like to create a NEW empty project, and all we know is to create a MyRobot.ccp program. Do we need anything else, such as a "dashboard.ccp" file?

Another problem is that when we would like to use example programs, when we build the project, the .OUT file does not become produced, and that restricts us from downloading it onto the cRIO. I'm guessing that the example files are just templates and they would have to be coded into our MyRobot.ccp file. Is that right? or would we be able to test only the Example files and that we are having a problem with making the .OUT file?

Now the last problem, rather it's really the sole problem, is getting the camera to work. I've read other threads about dashboard not being updated and such. I am positive it HAS been updated. The problem is that we can't get it to show on the dashboard. Is the camera suppose to AUTOMATICALLY show up on the dashboard? or are we suppose to put in code to make it show up? This would then go back to the last two problems, how would we code the dashboard, and when we use the example file it just doesn't make the .OUT file so we can't put it on the cRIO.

Please help us out! we are VERY behind, we are still working on prototypes on the robot and help would be very much appreciated!
  #2   Spotlight this post!  
Unread 04-02-2010, 22:45
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: FIRST TIME USING C++, Need help!

I can help you with the .OUT part,

go here:

http://usfirst.org/uploadedFiles/Com...ed-Rev-0.7.pdf

And follow the steps on page 39, called "2.8.2 How to build and load a C/C++ program" Follow that down a few pages, and make sure you do EVERYTHING correctly, otherwise it will not work. After you go through these steps you should be able to download code onto your cRIO.
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
  #3   Spotlight this post!  
Unread 04-02-2010, 23:18
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: FIRST TIME USING C++, Need help!

we've done that, or I think we have, Thanks for the help! I will ask the students if they've done EVERYTHING. However I am quite sure we've done most of the things as I was there to witness it. The only ones that was not done was Section 11 concerning the I/O module since we may not even use anything other than the joystick. Now, about the .OUT file, we have followed the steps EXACTLY under the "How to build and load a C/C++ program". The problem is that for the examples OTHER than the simple robot template, there doesnt seem to be a .OUT file made AFTER building the project. When we build the project and select the file to download to robot, the .out file isn't found!
  #4   Spotlight this post!  
Unread 04-02-2010, 23:21
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: FIRST TIME USING C++, Need help!

You are going to have to browse through the folders it instructs you to then, and go with your custom made file names.

So it would look like this:

C:\WindRiver\workspace\Name of your file\PPC603gnu\DefaultRobot\Debug\DefaultRobot.out
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
  #5   Spotlight this post!  
Unread 04-02-2010, 23:24
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: FIRST TIME USING C++, Need help!

We have, like its not under the gg3emu folder or w.e it's called(sorry can't remember). It's not in that folder which is INSIDE the NEW example project created. I'm wondering is it suppose to do that? Are we suppose to take code from the template itself and code it into our main robot project?
  #6   Spotlight this post!  
Unread 04-02-2010, 23:58
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: FIRST TIME USING C++, Need help!

Yea, its no where to be found. no .OUT file at all. But it works for the Simple Robot Template. Just not some of the other examples, such as the 2010vision demo
  #7   Spotlight this post!  
Unread 05-02-2010, 00:56
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: FIRST TIME USING C++, Need help!

Did you compile the project? If it was successful it should have given you a path to the .out file created on the last line. If it doesn't choose rebuild.



For instance on my project is building Sidewinder/Debug/Sidewinder.out
it's target is C:/WindRiver/workspace/Sidewinder/PPC603gnu/

So the path is: C:/WindRiver/workspace/Sidewinder/PPC603gnu/Sidewinder/Debug/Sidewinder.out
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #8   Spotlight this post!  
Unread 05-02-2010, 21:13
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: FIRST TIME USING C++, Need help!

Yes, when we compile it, it does give us the target to the ppc603gnu folder, however its still not in there.
  #9   Spotlight this post!  
Unread 07-02-2010, 00:53
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: FIRST TIME USING C++, Need help!

You might need to go into the section of the project properties that tells which targets to build. If you have the wrong one you won't have what you need. Use PPC603gnu. It's the only one you need to build.
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
Sustainable FIRST teams ….need your help Dennis Hughes General Forum 3 05-09-2007 16:51
NEED HELP RUNNING MULTIPLE FUNCTIONS AT SAME TIME!! rushrtr3 Programming 1 12-02-2006 02:01
FIRST Time Autonomus Help rcubes85 Programming 1 22-01-2005 11:52
FiRST Year Team - need Timer HeLP Cobra Programming 12 25-01-2003 19:46
need help with time zone! Ken Leung General Forum 6 25-06-2001 12:44


All times are GMT -5. The time now is 12:22.

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