Difference between revisions of "Programming"

From FRC11 - Mentor Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
The RoboRIO is a small embedded computer designed to control all functions on the robot, providing a variety input/output (I/O) facilities.  
 
The RoboRIO is a small embedded computer designed to control all functions on the robot, providing a variety input/output (I/O) facilities.  
  
−
http://s7d5.scene7.com/is/image/ni/03251405?$ni-card-md$
+
[http://s7d5.scene7.com/is/image/ni/03251405?$ni-card-md$ Picture of the RoboRIO]
  
 
(TBD more on the RoboRIO)
 
(TBD more on the RoboRIO)

Revision as of 21:05, 6 August 2018

Getting Started

The IDE

The Integrated Development Environment (IDE), sometimes known as the editor is your way of editing and compiling your code. On this project, the default IDE that everyone needs to know is the Eclipse IDE. It's pretty much the standard IDE that has a wide array of useful features for editing a number of different languages.

Another IDE that the team has enjoyed is IntelliJ IDEA, which has some appreciated features that Eclipse lacks by default, such as integrated version control. However, that can be remedied by plugins for Eclipse, such as EGit.

There are long standing battles as to which IDE is better. However, as most of the tutorials available for FRC are given in Eclipse, everyone needs to know Eclipse.

Java

Java is the language we use primarily to program the FRC robots. It is a general purpose programming language that can do almost any variety of tasks. It works hand-in-hand with WPI Lib to control the robot.

See the Java page to learn more about how we use Java.

The RoboRIO

The RoboRIO is a small embedded computer designed to control all functions on the robot, providing a variety input/output (I/O) facilities.

Picture of the RoboRIO

(TBD more on the RoboRIO)

WPI Lib

(TBD more on the WPI Lib)

LabVIEW and the Driver Station

(TBD more on the LabVIEW, Dashboard, Driver Station)

Version Control

(TBD more on the Version control and Git)


Project Documentation

TBD

Additional Topics

Index of all Topics Beginner Topics Intermediate Topics Advanced Topics

To be moved [Needs more hierarchy]

What they are, how they work, how use them and any FRC11 policies.
  • Tutorials (all programmers should walk through this)
* Note: you should look through the code some minor items (imports) are glossed over
* FRC Java Command-based Programming Tutorials


  • Languages
* FRC/WPI Java
Cygwin,
Bash and
PowerShell
Oracle VirtualBox, VMware/Fusion, Parallels, KVM, Xen.
Red Hat, Debian, (X/K/L)Ubuntu, LXLE, Mint, Zorin, ChruchBase, Arch(Bang), and 'NI Linux Real-Time' (which is a rip of Red Hat Linux with modifications to preempt kernel functions to make it more realtime).
At least IFI to RoboRio.
For cRio and RoboRIO.
Also communicating with co-processors using UDP or TCP.
Plus mDNS.

Custom USB devices on the Driver Station or digital I/O

Also SPI, I2C devices on the RoboRio.

CameraServer to the Driver Station

Live video from a Logitech C920
USB cameras on Linux,
Maybe Grip and
The LimeLight

Using the Kangaroo for video coprocessing

Navigation using the Navx

Navigation using the RoboRIO sensors

Other RoboRIO sensors

Talon SRX CAN features

PID loops in the RoboRio

PID loops in the Talons