Go to Post "Ugly can win" - Mr. Lim [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2016, 17:26
gbear605's Avatar
gbear605 gbear605 is offline
Scarebear
FRC #1768 (Nashoba Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 37
gbear605 is an unknown quantity at this point
No Robot Code on the RoboRIO

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:

Code:
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.
  #2   Spotlight this post!  
Unread 12-01-2016, 10:09
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 544
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: No Robot Code on the RoboRIO

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.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
  #3   Spotlight this post!  
Unread 12-01-2016, 10:39
gbear605's Avatar
gbear605 gbear605 is offline
Scarebear
FRC #1768 (Nashoba Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 37
gbear605 is an unknown quantity at this point
Re: No Robot Code on the RoboRIO

There is no driver station error log. How do I find the roborio log?
  #4   Spotlight this post!  
Unread 12-01-2016, 10:45
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: No Robot Code on the RoboRIO

Instructions for opening Riolog are available on ScreenSteps here: http://wpilib.screenstepslive.com/s/...console-output. Instructions are about halfway down the page.
  #5   Spotlight this post!  
Unread 12-01-2016, 14:30
gbear605's Avatar
gbear605 gbear605 is offline
Scarebear
FRC #1768 (Nashoba Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 37
gbear605 is an unknown quantity at this point
Re: No Robot Code on the RoboRIO

The only thing that the Riolog says is
Code:
➔ Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'»
  #6   Spotlight this post!  
Unread 12-01-2016, 19:14
gbear605's Avatar
gbear605 gbear605 is offline
Scarebear
FRC #1768 (Nashoba Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 37
gbear605 is an unknown quantity at this point
Re: No Robot Code on the RoboRIO

Okay, by commenting out code, I've narrowed it down to

Code:
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi