Robots Drinking Java

Honda-ASIMO-Pouring-Drinks-1-687x1024

Honda’s ASIMO robot pouring coffee.

This page is an evolving resource for FRC programming (especially Java) and controls.

 

Our Collection of Code

 

Java Presentation

(Presented by Team 3528 at Liberty Robotics Massive Mini on 10/8/2016)

 

Critical Links

 

Java Learning Resources

 

Controls Resources

 

Cool Editors

 

Git Version Control

 


 

Networking Tips and Troubleshooting

 

 

Common FRC IP Addresses

  • Radio: 10.TE.AM.1
  • RoboRIO Static: 10.TE.AM.2
  • RoboRIO USB: 172.22.11.2
  • RoboRIO mDNS: roboRIO-####-frc.local
  • RoboRIO ethernet: DHCP
  • DHCP Range: 10.TE.AM.20 – 199
  • IP Networking at the Event

 

Command-line network setup (useful for scripting)

(This not as necessary with the RoboRIO since most everything is configured automagically using mDNS.)

Run the following from an admin command prompt:

netsh interface ip set address name="Wireless Network Connection" static <ip address> <netmask> <gateway>

Replace:

  • <ip address> with your desired ip address (example: 10.35.28.42)
  • <netmask> with your desired netmask (usually: 255.0.0.0)
  • <gateway> with your desired gateway (example: 10.35.28.2)

(You’ll need to modify the ip addresses to use your team number. You may need to change the name of your wireless card as well.)

 

In times of (network) trouble

  • Make sure mDNS is running
  • Make sure you can ping your router/radio
  • Make sure you can ping roboRIO-TEAM.local (ex: ping roboRIO-3528.local)
  • Disable Windows Firewall
  • Disable all other network adapters except the one you’re connecting to the robot
  • Switch to a wired connection

If you get errors deploying code but it works with the firewall off, disable stateful ftp blocking. Run the following in an admin command window:

netsh advfirewall set global StatefulFTP disable


 

Essential Files / Locations / Settings

 

(Note: if you’re running 32bit windows, your program files directory is found in “C:\Program Files” instead of “C:\Program Files (x86)”)

RoboRIO Firmware

C:\Program Files (x86)\National Instruments\Shared\Firmware\cRIO\76F2\

RoboRIO Images

C:\Program Files (x86)\National Instruments\LabVIEW 2016\project\roboRIO Tool\FRC Images\

RoboRIO Imaging Tool

C:\Program Files (x86)\National Instruments\LabVIEW 2016\project\roboRIO Tool

RoboRIO Java Installer

%userprofile%\wpilib\tools\javainstaller.jar

Bridge (radio) Config Utility

C:\Program Files (x86)\FRC Radio Configuration Utility\FRC Radio Configuration Utility.exe

NetConsole

C:\Program Files (x86)\NetConsole for cRIO

Eclipse

%userprofile%/eclipse

Drive Station Config File

C:\Users\Public\Documents\FRC\FRC DS Data Storage.ini

Setting (in above file) to Launch SmartDashboard

DashboardCmdLine = “C:\\ProgramData\\Oracle\\Java\\javapath\\java.exe -jar C:\\Users\\<your user id>\\wpilib\\tools\\SmartDashboard.jar”