Go to Post Sounds more like competition for Kentucky Fried Chicken - "I'll have the 3-piece dinner, a Winglet and two thighs..." - Dick Linn [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-16-2016, 04:49 PM
Bitsy Bitsy is offline
Registered User
FRC #5931
 
Join Date: Jan 2016
Location: US
Posts: 1
Bitsy is an unknown quantity at this point
Good example of C++ programming?

I am a mentor with programming experience but I am new to programming robots.
Does anyone know of a good example of C++ programming?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-16-2016, 08:35 PM
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Good example of C++ programming?

Define "good"... the robonauts open sourced their code but I doubt a new programmer could learn from it.

The best resource for new users is screensteps
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #3   Spotlight this post!  
Unread 01-20-2016, 10:21 PM
chloe's Avatar
chloe chloe is offline
human
FRC #1868 (Space Cookies)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2013
Location: United States
Posts: 17
chloe is an unknown quantity at this point
Re: Good example of C++ programming?

WPILib has its very own comprehensive (ish) documentation on C++ programming for robots. First you should choose which base class you're using -- IterativeRobot, SimpleRobot, or Command-based Robot. Once you have that, there are plenty of resources found in that link to get started with robot programming.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-20-2016, 11:58 PM
Egg 3141592654's Avatar
Egg 3141592654 Egg 3141592654 is offline
Now a mentor, always a student
FRC #0810 (Mechanical Bulls)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Long Island
Posts: 53
Egg 3141592654 is on a distinguished road
Re: Good example of C++ programming?

I find that the gearsbot and pacbot examples are pretty good full examples of programming C++ with the first libraries. They are in the same place as the other examples, but under the "command based robot" examples.

After reading the introduction to the command based programming docs (url below) you can see the general development flow and layout of a working robot. If you feel that the command based approach isn't for you, the link that chloe provided heads to the same page, but the more generalized documentation for things such as iterative and simple robot based projects.

https://wpilib.screenstepslive.com/s...ed-programming
__________________
"The answers to the book of life are not found in the back." Charlie Brown

Software Mentor - Team Apex Robotics 5803

Lead Programmer - Team 810 Mechanical Bulls '09-'11
Reply With Quote
  #5   Spotlight this post!  
Unread 01-21-2016, 08:54 AM
MichelB's Avatar
MichelB MichelB is offline
Jack Of All Trades
FRC #3941 (Absolute Zero Electricity)
Team Role: Electrical
 
Join Date: Nov 2013
Rookie Year: 2012
Location: Havre De Grace, MD
Posts: 51
MichelB is an unknown quantity at this point
Re: Good example of C++ programming?

Our team, 3941, programs in C++ and posts all of our code to our GitHub (here). Feel free to take a look and email (michelfrancisb@gmail.com) with any questions.
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 09:13 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