Getting Started Tutorials - Programming

From FRC11 - Mentor Wiki
Revision as of 16:23, 21 October 2018 by Dsteinmark (talk | contribs)
Jump to navigation Jump to search

[To do: much of this should be shifted to a "languages" page. This page can also be for IDE, Git, and other tutorials]

There are lots of different programming languages. Most of the languages we are familiar with are Procedural languages (like C, python or Pascal), or Object oriented languages, many of which happen to have significant roots in procedural languages (like C++ or Java). There are other types of languages that are quite different, like Functional languages such as Lisp which is often used in Artificial Intelligence, and Logic languages, such as Prolog.

Here we only cover languages likely to be used on our team - Java and Python.

Java

(Note: see more on the Java page.)

Guides

FRC Java Tutorials

FRC Java Command-based Programming Tutorial Playlist (1.5 hrs)

  • FRC Java Programming Tutorial Part 1: Project Setup
  • FRC Java Programming Tutorial Part 2: Basic Drivebase
  • FRC Java Programming Tutorial Part 3: Setting up Tank Drive Controls
  • FRC Java Programming Tutorial Part 4: How to use TalonSRXs
  • FRC Java Programming Tutorial Part 5: Version Control
  • FRC Java Programming Tutorial Part 6: WPILIB PID

Note: when watching the videos, you should stop and look through the code that is discussed. Some minor items (such as imports) are glossed over. For example, if you have unreferenced calls in your code, compare the code on screen with what you have - you may have to import an additional library. Hover over unresolved items. Usually, you want to import the correct library.

Python

Learn to Code Python in an Hour

IntelliJ

Git