Go to Post If 100 people from ChiefDelphi all wrote one full article on something that they are an 'expert' in, FIRSTwiki would be even better. - artdutra04 [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 17-01-2012, 22:06
mikegrundvig mikegrundvig is offline
Registered User
FRC #2410 (Metal Mustangs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 100
mikegrundvig is an unknown quantity at this point
Serial C++ Docs

Ok, I'm trying to help the students work on the C++ code for the robot and am getting my head around the build/deploy process. The students had a HORRIBLE time getting it working initially for a variety of reasons and we are still not there yet but close. I'm trying to plan 2 steps ahead - where can I find documentation about what we can do with C++ on the robot outside of the WPI robot library docs? For instance, we are likely to need serial communication working and the WPI docs have nothing. We could use native C code but we need documentation on what's available on the cRIO. Where is this available? Thanks!

-Mike
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2012, 10:38
mikegrundvig mikegrundvig is offline
Registered User
FRC #2410 (Metal Mustangs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 100
mikegrundvig is an unknown quantity at this point
Re: Serial C++ Docs

While it's not the platform C++ docs, the WPI API docs have enough info for serial communication. Here they are:
http://firstforge.wpi.edu/sf/go/doc1198?nav=1
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2012, 17:09
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Serial C++ Docs

You probably will not need to interface with any device that is not covered by the WPILib. If you want to get ahead I would focus on understanding WPILib and the classes/interfaces it exposes.

Link to the relevant documents (You might need to create an account):
http://firstforge.wpi.edu/sf/docman/..._documentation

Relevant Docs:
Quote:
2012 WPILib Cookbook
WPI Robotics Library Users Guide
C++ Getting Started Guide
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2012, 00:36
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Serial C++ Docs

Yes, WPILib does support Serial communication, take a look at SerialPort.cpp and SerialPort.h

I know that the cRIO can handle many of the basic C++ functions, such as the variety of string methods, and it is fully compatible with math.h.
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
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 03:03.

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