Go to Post Fans come and go... but if you're a diehard, you stick around during the losing seasons, too. - Amanda Morrison [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-19-2009, 03:34 PM
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Code Base

Where am I supposed to start entering everything in for actual coding? The guide mentions classes like the SimpleRobot and IterativeRobot classes, but where are you supposed to put those? Are they build into the WPI libraries already? Scrolling through the library I didn't sort of main function or any base file to start entering code into.
Am I thinking about this the wrong way or do I have to enter in another class file and what not?
My reasoning behind this thinking is the code in previous years had the files like user_routines.c where you put all of your teleop code. The guide showed the SimpleRobot class had the init, Autonomous, and the teleop all compiled into one, but I'm just at a loss on where to put/get that file.

(Sorry for being so run around, I'm bad at wording what I actually mean)
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
Reply With Quote
  #2   Spotlight this post!  
Unread 01-19-2009, 03:51 PM
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 321
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Code Base

Do you have windriver installed?

Go to file -> new -> example

then pick VxWorks Downloadable Kernel Module Example Project

then choose an example that starts with FRC (try the simple robot demo)
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 01-19-2009, 04:01 PM
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Re: Code Base

Bah OK there it is, thanks.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
Reply With Quote
  #4   Spotlight this post!  
Unread 01-19-2009, 04:48 PM
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Re: Code Base

OK to avoid creating another thread, and its similar in nature anyway:
How the fork do I set up the connections to download code to the robot?
The guide is VERY VERY vague in this, as it just says
1. Download
2. Reboot
[facepalm]
Do I have to set up cables through the drivers sation then to the cRIO? Or can I just go straight from the laptop to the cRIO? And I assume the IP on the laptop has to be the 10.xx.yy.6 IP in order to download?
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
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
2009 base C/C++ code? Maxpower57 Programming 15 10-24-2008 09:02 PM
Circle base vs. Rectangle base Pelicano234 Technical Discussion 13 01-15-2008 04:49 PM
Looking for Base Code Eric W. Jones Programming 2 10-30-2006 06:54 PM
Knowledge Base Leon Machado IV Programming 15 08-02-2005 12:24 PM


All times are GMT -5. The time now is 10:32 AM.

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