Team 7721's FRC Code for infinite recharge.
When in doubt, Actually read the guides and this readme.
⠀
Or
Getting tools like pathweaver, smartdashboard, shuffleboard, etc.
WPILIB: Start Tools
by typing this in the bar that just appeared.WPILIB: Start Tools
again and start any random tool, if prompted "A Java Exception has Occured"
JAVA_HOME
in "System Variables", setting the value to the path to your jdk 13
C:\Program Files\Java\jdk-13.0.1
println()
in execute()
/periodic()
Printing out too much stuff too fast causes (around 30 characters per 20ms cycle) will cause driver station (version 20) to use up 30%+ cpu (on a plugged in i5-8265U) and gets extremely laggy, then die completly.
It will also cause driver station to show [red|green] for "communication, and thinking that the roborio has been emergency stopped.
Use smart dashboard/network tables for debugging instead of println().
Guide for Installing Raspbian Buster Lite on your raspberry pi
After installation, put an empty file with no file extension named ssh
into the root of the boot
to enable ssh for headless setup.
Power on the raspberry pi, then connect it to your computer through an ethernet cable.
ssh into the raspberrypi by running the command ssh pi@raspberrypi
, then yes
, then enter the default password raspberry
Guide to Settings WiFi up via the command line
For school Wifi, open the wpa-supplicant
configuration file in nano (a code editor) by running:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
and put this in there, replacing the [student#] and [student password] with actual student number and password:
network={
ssid="YRDSB-S"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="[student#]"
password="[student password]"
phase1="peaplabel=1"
}
Official guide for setting up chameleon vision
The raspberry pi must be connected to the internet through ethernet during install/update
Run these commands on the raspberry pi, not your own computer, to do stuffs:
To install:
wget https://git.io/JeDUk -O install.sh
chmod +x install.sh
sudo ./install.sh
To run:
sudo java -jar chameleon-vision.jar
To update:
wget https://git.io/JeDUL -O update.sh
chmod +x update.sh
sudo ./update.sh
Guide to make stuffs (in this case, chameleon vision) run on boot
To connect to the web dashboard of chameleon vision, put http://raspberrypi:5800/
in your browser.
Make sure your computer and the raspberrypi are under the same network.
School wifi blocks a lot of ports and won't work, connect the raspberry pi directly to your laptop through ethernet or the roborio wifi to test chameleon vision