Difference between revisions of "Programming"
Dsteinmark (talk | contribs) |
Dsteinmark (talk | contribs) |
||
| Line 23: | Line 23: | ||
[http://s7d5.scene7.com/is/image/ni/03251405?$ni-card-md$ Picture of the RoboRIO] | [http://s7d5.scene7.com/is/image/ni/03251405?$ni-card-md$ Picture of the RoboRIO] | ||
| − | The RoboRIO includes built-in ports for inter-integrated circuits (I2C), serial peripheral interfaces (SPI), RS232, USB, Ethernet, pulse width modulation (PWM), and relays to quickly connect the common sensors and actuators used in robotics. The controller features LEDs, buttons, an onboard accelerometer, and a custom electronics port. | + | The RoboRIO includes built-in ports for inter-integrated circuits (I2C), serial peripheral interfaces (SPI), RS232, USB, Ethernet, pulse width modulation (PWM), and relays to quickly connect the common sensors and actuators used in robotics. The controller features LEDs, buttons, an onboard accelerometer, and a custom electronics port. It has a dual-core ARM real-time Cortex‑A9 processor and customizable Xilinx FPGA. |
| + | |||
| + | You can use LabVIEW on the Driver Station to program the onboard processor, though we usually use a laptop and download our software via an Ethernet cable. | ||
See more on the [[RoboRIO]] page. | See more on the [[RoboRIO]] page. | ||
Revision as of 07:14, 7 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.
- Installing and Using Eclipse IDE (mandatory)
- Installing and Using IntelliJ IDEA (optional)
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.
It is the main device that allows us to interface with the FRC Field Management System (FMS, sometimes known as The Field), taking commands such as the Start Autonomous signal or the Start Teleop signal. The RoboRIO allows us to read our sensors and control our motors and pneumatics. It can also interface with auxiliary on-board computers, such as the Kangaroo, and communicates with the Driver Station via WiFi, or a laptop for programming via Ethernet.
The RoboRIO includes built-in ports for inter-integrated circuits (I2C), serial peripheral interfaces (SPI), RS232, USB, Ethernet, pulse width modulation (PWM), and relays to quickly connect the common sensors and actuators used in robotics. The controller features LEDs, buttons, an onboard accelerometer, and a custom electronics port. It has a dual-core ARM real-time Cortex‑A9 processor and customizable Xilinx FPGA.
You can use LabVIEW on the Driver Station to program the onboard processor, though we usually use a laptop and download our software via an Ethernet cable.
See more on the RoboRIO page.
WPI Lib
(TBD more on the WPI Lib)
LabVIEW and the Driver Station/Classmate
(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
- 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