Go to Post Lighten it up a little to bring it in under the 120 pound weight limit, and I think you will have something there! - dlavery [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 10-01-2013, 20:17
cehnehdeh cehnehdeh is offline
Registered User
FRC #4559
 
Join Date: Jan 2013
Location: Seattle, Washington
Posts: 1
cehnehdeh is an unknown quantity at this point
New to Windriver/C++

This is my first year doing the FRC, and I'm helping program our robot. Experience-wise, I've used C for the past 3 years, and I haven't used C++ very much. Right now, I'm working on trying to get input from out Logitech Attack3 joystick, however, I'm semi-confused on... Everything. Is there any documentation for windriver that's FRC related? Anything I can read that can explain a little more in-depth? I've found a couple resources online, nothing meaty though.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2013, 19:34
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
Re: New to Windriver/C++

I'd recommend you first read through this website:

http://wpilib.screenstepslive.com/s/3120

It's a comprehensive tutorial that covers most of the details on how to deploy code to the robot, set up your development environment, and some details on how the WPILib library works. It actually combines several documents that used to be in separate pdfs last year.

However, it doesn't give you the actual API, which is a tad bit inconvenient. You can find that on your computer by going to:

Code:
C:\WindRiver\docs\extensions\FRC
...and looking through the files there. You probably want to look at the "GettingStartedWithC.pdf" and "WPI Robotics Library User's Guide" (although some of the information may be repeats of what you read in the website linked above).

The actual API can be found in the "WPILib C++ Reference.chm" file. There's a chance it might not display anything correctly if you open it. If so, right-click, hit properties, and look around a bit until you see something like "unblock". You can ignore a lot of the classes you see there for now. Initially, you probably want to look at the 'RobotDrive' class to actually drive the robot, the 'Joystick' class for input, and the 'Jaguar/Victor/Talon/SpeedController' classes to control various motors.

I'd also recommend you study up on object-oriented programming a bit. While you can use WPILib in a procedural manner, it's really meant to be an OOP library. Since you came from C, you might find that a bit foreign at first, but the examples FIRST provides makes it fairly easy to learn as you go.

I'd also recommend you study up a little on electronics. I guess it's not strictly needed to program the robot, but I personally found it really useful since it let me know what was actually going on with my code (plus, a lot of the mistakes I first made when I first joined FRC were a combination of programming and wiring errors, so knowing some electronics makes debugging a less frustrating experience).

The kit of parts section of usfirst.org is really useful.

http://www.usfirst.org/roboticsprogr...c-kit-of-parts

It has links to a whole bunch of resources (not necessarily programming-related).

Finally, you could try looking through this website. Nearly all the FRC-related software lives there, so you might be able to find some documentation there.
http://firstforge.wpi.edu/sf/sfmain/do/listProjects
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2013, 19:40
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
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: New to Windriver/C++

Check out the "WPILib Users Guide" on the WPILib project on FIRSTForge. In addition look at the sample programs for some ideas. And lastly, you might want to look at the "Getting Started with C++" document here: http://wpilib.screenstepslive.com/s/3120/m/7913.

If you still can't find what you're looking for go ahead and repost here.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2013, 11:05
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: New to Windriver/C++

Just to tack on some extra info, here's a link to my github project from last year:
https://github.com/TeamExcel/Project.../Robot2012.cpp

Hopefully it can provide a decent reference.
There are also some helpful examples in windriver (instructions are in the documentation listed above I think), but I would suggest using IterativeRobot instead of SimpleRobot as a base class.

Good luck, I was in your situation 1 year ago
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


All times are GMT -5. The time now is 14:34.

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