Skip to content

Robot Code Not Turning Green Despite No Runtime Errors

Armaan Gomes edited this page Jul 10, 2023 · 3 revisions

Robot Code Not Turning Green Despite No Runtime Errors

Authors: Armaan, Aditi

Date: 7/7/23

Status

  • FIXED

Symptoms

  • Robot Code on driver station is not turning green

Solutions:

Solution 1: Restart Robot Code Through DriverStation

  1. Open Driver Station and press the restart robot code button

    • The button can be found on the second tab
  2. Wait 2 minutes

Solution 2: Redeploy Robot Code

  • Odds are, this will accomploish little, but it sometimes works
  1. Redeploy code to the robot

  2. Wait 2 minutes

Solution 3: Reset Roborio

  1. Reboot the RoboRio from Driver Station or with the physical button on the RoboRio

    • The button can be found on the second tab
  2. Wait 4 minutes

Solution 4: Power cycle

  1. Turn the robot off then back on

  2. Wait till the robot restarts its wifi

Solution 5: Check Packet Loss

  1. See Frequent Packet Loss Spikes

Solution 6: Kill Robot Code (through SSH)

  1. Open a terminal or command line and SSH into the robot (admin@10.6.70.2)

  2. Optional: View the ongoing Java processes using “ps -elf | grep java”

  3. There should be 2 items in the list. One is the robot code, and the 2nd is your “grep” command. If there are more than two, you likely have multiple instances of robot code running

  4. To kill all java processes, run “pkill -9 java”

  5. Do step 2 to comfirm that you have killed all processes

  6. If not, repeat steps 4 and 5 untill it works (if it takes more than 3 or 4 tries ask a lead)

Resources

Clone this wiki locally