|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Beginners Programming in C++
My team (FRC 1257) uses C++ to program the robot and I'd like to learn it. I've never really written code in anything except basic Python. Are there any good resources you know of to learning C++? Or how did you guys learn?
Any assistance would be amazing! |
|
#2
|
||||
|
||||
|
Re: Beginners Programming in C++
I've heard good things about Code Academy. Personally, I learned at a summer camp and subsequently took the C++ Intro class in college. You could look into a local community college and see if they offer a summer course or something.
As well, the WPI Library is a good place to start once you have a good handle on the basics of coding and want to know more about FRC specific applications. |
|
#3
|
|||
|
|||
|
Re: Beginners Programming in C++
|
|
#4
|
|||||
|
|||||
|
Re: Beginners Programming in C++
learncpp.com has super comprehensive tutorials. Heavy on the text, but if you bear with it you'll learn a lot.
|
|
#5
|
||||
|
||||
|
Re: Beginners Programming in C++
As a new C++ programmer, I encourage you to look at RobotBuilder and the Command-based robot template provided in the FRC tools. RobotBuilder is a graphical interface that will provide a set of C++ template files that are easy to work in. Even with only basic C++ skills, you can get a drivetrain defined and implemented very quickly. It will let you focus on how to make your robot work using C++ since it sets up all the files and syntax for an organized project.
|
|
#6
|
|||
|
|||
|
Re: Beginners Programming in C++
I've been working on a C++ guide on my team website http://www.bioniczebras.net/c++_guide.shtml
its not completely done but the only thing im still working on is the fancier auton verson. It uses Iterative as opposed to command based like most. |
|
#7
|
||||
|
||||
|
Re: Beginners Programming in C++
I've found the most important part of learning C++ to be understanding how memory management works (that might just be because I came from a Java background though
)Once you have a somewhat firm grasp on C++, I highly recommend writing a basic robot program from scratch. Run it on a test bot if your team has one, or use the WPILib simulator. Or you could always switch to RobotPy ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|