Log in

View Full Version : No Robot Code on the RoboRIO


gbear605
11-01-2016, 17:26
We are still using the 2015 Control System and all the code from last year. We haven't updated WPILib. When I load the code to the robot, this is the log:

Trying to override old definition of task classloader
clean:
[delete] Deleting directory /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/build
[delete] Deleting directory /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/dist
compile:
[mkdir] Created dir: /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/build
[echo] [athena-compile] Compiling src with classpath=/Users/Nashoba/wpilib/java/current/lib/WPILib.jar:/Users/Nashoba/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 22 source files to /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/dist
[mkdir] Created dir: /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/build/jars
[echo] [athena-jar] Copying jars from /Users/Nashoba/wpilib/java/current/lib/WPILib.jar:/Users/Nashoba/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to /Users/Nashoba/Programming/2016-Pre-Season-Drivetrain/build/jars
[jar] Building jar: /Users/Nashob/Programming/2016-Pre-Season-Drivetrain/dist/FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-1768.local
[echo] roboRIO found via mDNS
dependencies:
[echo] roboRIO image version validated
[echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
[sshexec] Connecting to roboRIO-1768.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-1768.local:22
[scp] done.
[sshexec] Connecting to roboRIO-1768.local:22
[sshexec] cmd : killall netconsole-host
[scp] Connecting to roboRIO-1768.local:22
[scp] done.
[scp] Connecting to roboRIO-1768.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-1768.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] start-stop-daemon: warning: killing process 1761: No such process
BUILD SUCCESSFUL
Total time: 11 seconds


However, the Comm light on the RoboRIO is red (indicating no code) and the Driver Station says there is no code on the robot.

Arhowk
12-01-2016, 10:09
Looks like your code is erroring out. Can you post a riolog dump as well? and the driver station error log if there is any content there.

gbear605
12-01-2016, 10:39
There is no driver station error log. How do I find the roborio log?

fsilberberg
12-01-2016, 10:45
Instructions for opening Riolog are available on ScreenSteps here: http://wpilib.screenstepslive.com/s/4485/m/13809/l/284333-viewing-console-output. Instructions are about halfway down the page.

gbear605
12-01-2016, 14:30
The only thing that the Riolog says is
➔ Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'»

gbear605
12-01-2016, 19:14
Okay, by commenting out code, I've narrowed it down to

for(; i*maxAcc < maxSpeed; i += 0.01) {}
being the issue.

This happens because maxAcc = 0, since I hadn't found the value yet... Oops.

Thanks for the help at narrowing it down to being a code issue.