Difference between revisions of "Programming Languages"

From FRC11 - Mentor Wiki
Jump to navigation Jump to search
Line 10: Line 10:
  
 
See the [[Java]] page.
 
See the [[Java]] page.
−
 
  
 
== WPI Lib ==
 
== WPI Lib ==

Revision as of 19:06, 21 October 2018

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 Programming 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, plus the WPI Lib supplemental libraries, and Python.

Java

Java is the primary language for controlling the robot. Java programs are developed in an IDE such as Eclipse, IntelliJ, or VSCode. Applications are uploaded to the RoboRIO and run on the robot.

Much of the ability to control the robot is dependent on additional low-level software to interface with sensors and other controllers, and the FRC Field. As a result, we need to include the WPI libraries.

See the Java page.

WPI Lib

This is not a separate programming language, but a supplement to enhance the abilities of Java. It provides the low-level interfaces mentioned above, and must be included to get the capabilities to control the robot.

See the Java page for more details.

Python

Learn to Code Python in an Hour