Go to Post I wonder if the FIRST Place Holiday Party partly consists of watching the site activity.... - Jessica Boucher [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 30-01-2009, 09:58
pagemauck pagemauck is offline
Registered User
#0437
 
Join Date: Oct 2003
Location: richmond, va.
Posts: 25
pagemauck is an unknown quantity at this point
Having trouble building example code

We've cut and pasted the code from the Programming Guide into Wind River. When we build the project it gets errors referencing the classes. I suspect it can't find them from the built in library. Our communication with the Crio seems fine - download seems to work.

I've programmed in Visual C++ for years but am having trouble getting started in Wind River.

Does anyone know what I'm doing wrong? Help is much appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2009, 12:12
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,713
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: Having trouble building example code

It's easiest to start from one of the supplied Wind River templates, rather than write a program from scratch your first time out of the gate, so to speak.

There are a bunch of background connections to libraries and such, that won't be there for a scratch project. If you're interested in all the required setup steps you can create a project from a template, then inspect all the optional settings that have been made for you.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2009 at 13:00.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2009, 12:28
pagemauck pagemauck is offline
Registered User
#0437
 
Join Date: Oct 2003
Location: richmond, va.
Posts: 25
pagemauck is an unknown quantity at this point
Re: Having trouble building example code

Thanks Mark. Do you know where the templates are? I can't seem to find the info in the manual.

Thanks again!
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2009, 12:37
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: Having trouble building example code

This is from memory so it may be a little off. The templates are actually called examples. You can goto file-new-example and find them listed. The ones prefixed with 'FRC' is what you want.

The manual goes through the steps of setting up one of these examples so you might wanna glance over that:

http://first.wpi.edu/Images/CMS/Firs...ming_Guide.pdf
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/

Last edited by pheadxdll : 30-01-2009 at 12:39.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2009, 13:04
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,713
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: Having trouble building example code

Alex's memory is pretty good.
After choosing Example, select "VxWorks Downloadable Kernel Module Sample Project" and you'll see the list of available examples.

I'd start with the

FRC Simple Robot Template
"This program is the simplest sample program that implements the full field control and shows the use of the watchdog timer. This is an excellent starting point for your programs.
This program simply drives forward for 2 seconds in the Autonomous period and does simple arcade driving during the Operator Control period. "
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2009 at 23:59.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2009, 21:19
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Having trouble building example code

Quote:
Originally Posted by pagemauck View Post
Thanks Mark. Do you know where the templates are? I can't seem to find the info in the manual.

Thanks again!
Maybe watching a video will help....

http://users.wpi.edu/~bamiller/Using...Workbench.html
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
I am having trouble finding parts PartsMan General Forum 2 12-02-2008 11:07
Trouble building code Omni Programming 2 30-01-2008 18:33
Im am having trouble with the MPLAB hedgehogger Programming 7 19-01-2004 17:37
I'm having trouble sleeping!! archiver 1999 5 23-06-2002 22:38
Having trouble accessing FIRST's site... archiver 2000 1 23-06-2002 22:24


All times are GMT -5. The time now is 02:42.

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