Go to Post I approve of this misuse of machinery! - RoboChair [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 05-04-2014, 22:42
Jasonism4me Jasonism4me is offline
Registered User
FRC #1806
 
Join Date: Jan 2014
Location: Smithville
Posts: 1
Jasonism4me is an unknown quantity at this point
Question Re: Command Based Programming

Hi! My team would like to switch to C++ next year but would like to have a programmer (me) that knows what they are doing before the year starts. I cannot find a good C++ guide or something similar to get me started and I am kind of confused with how the structure is supposed to work. Any good suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 06-04-2014, 01:49
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Command Based Programming

Quote:
Originally Posted by Jasonism4me View Post
Hi! My team would like to switch to C++ next year but would like to have a programmer (me) that knows what they are doing before the year starts. I cannot find a good C++ guide or something similar to get me started and I am kind of confused with how the structure is supposed to work. Any good suggestions?
That is a little hard to believe. There are hundreds of C++ books and/or "guides" out there. Where have you looked? What sort of background do you have? FIRST has a decent how-to-get started guide. Have you looked at that?

http://wpilib.screenstepslive.com/s/3120/m/7913
http://www.usfirst.org/roboticsprogr...twareresources
http://www.cplusplus.com/doc/tutorial/
http://www.cprogramming.com/tutorial/c++-tutorial.html
http://www.informit.com/store/accele...-9780201703535
http://www.stroustrup.com/Programming/

... google is your friend.

HTH
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #3   Spotlight this post!  
Unread 07-04-2014, 01:22
jmullins16's Avatar
jmullins16 jmullins16 is offline
Registered User
AKA: Jeff Mullins
FRC #2135 (Presentation Invasion)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2011
Location: San Jose, CA
Posts: 23
jmullins16 is an unknown quantity at this point
Re: Command Based Programming

I agree there are lots of good tutorials on getting started with C++. Keith has a very good list and I've been through many of them in getting our team started using C++ two years ago. Some are focused on writing a generic C++ program, Object-Oriented programming, or specifically using C++ with WPILib for an FRC robot (screenstepslive).

I recommend that if you have a robot to test with, stay close to the WPILib/screensteps tutorials which get you going very quickly. And if you want to have an initial set of template headers and source files to see how a project fits together, take a look at RobotBuilder. It will get you a working C++ project that is driving with only a few lines of your own code. It can sometimes be easier learning the language when you see lots of the structure in place for you to modify.

If you don't have a robot to learn the language right away, then I would focus on the more generic C++ tutorials that can be run with most C++ compilers. Retention is always better when you have to debug something and make it work.

By using RobotBuilder our team spends more time figuring out WPILib calls to add robot functionality than how to use C++ as a language. And that's what I want them to do.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2015, 11:31
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 113
King Nerd III is an unknown quantity at this point
Re: Command Based Programming

I created a new template with a huge amount of comments and examples if you want to check it out:
http://www.chiefdelphi.com/forums/sh...d.php?t=133961
This is based off of how our robot will be set up this year, and should be rather easy to follow. Just make sure you don't miss the Robot::insertobjecthere or most things as it is what causes most errors for my under programmers.
-Lord Supreme Programmer for Team 1410 Isaac

Last edited by King Nerd III : 06-02-2015 at 11:34.
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:54.

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