Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Good example of C++ programming? (http://www.chiefdelphi.com/forums/showthread.php?t=141899)

Bitsy 01-16-2016 04:49 PM

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?

Arhowk 01-16-2016 08:35 PM

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

chloe 01-20-2016 10:21 PM

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.

Egg 3141592654 01-20-2016 11:58 PM

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

MichelB 01-21-2016 08:54 AM

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.


All times are GMT -5. The time now is 09:13 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi