Go to Post i have a feeling that the field with be the same as it was last year just to save some money. but what is inside the the field will be diferent. - Michael Leicht [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 26-05-2016, 22:59
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 22
AMendenhall is an unknown quantity at this point
Project Build Inquiries

Hi whoever is still active.

Recently I've been digging around the nitty gritty files of FRC projects, so here's some questions I have after doing some exploring (concerning mainly build.xml) WARNING: it gets rambly.

Code:
${user.home}/wpilib/wpilib.properties
I'm assuming the ${} syntax is standard for xml. A quick search says that it's a substitution variable. What other interesting things can you do with that besides go to the current user's folder? On which OSs?

Inside wpilib.properties, there's this line:
Code:
#Don't add new properties, they will be deleted by the eclipse plugin.
version=current
team-number=3925
What language is that? What other things can you do with the .properties filetype? It says you shouldn't edit it. What code is automatically changing it? Could you set up a thing in eclipse or other to automatically ask what team number you want to configure it to instead of having to go to Window->Preferences? Like the run recent button? I mean, robotBuilder has the crane, so why not a team number chooser? Also, how does robotBuilder do that? And FX?

In build.properties
Code:
robot.class=${package}.Robot
userLibs=${user.home}/navx-mxp/java/lib/navx_frc.jar
That's to include the NavX libraries. Why don't you need to do that for WPILib.jar or NetworkTables.jar? Also, there's the ${} notation.

Back in build.xml
Code:
<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/>
More ${}. What is ant? There's ant-classloadertask, ant-contrib. What do those do?

In ...ant/build.properties
Code:
username=lvuser
password=
deploy.dir=/home/lvuser
deploy.kill.command=. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r
debug.flag.dir=/tmp/
debug.flag.command=chown lvuser:ni ${debug.flag.dir}frcdebug
command.dir=/home/lvuser/
version=current
roboRIOJRE.dir=/usr/local/frc/JRE
Could you boot code to the other account on the RIO? It's got username and password. Is deploy.dir (/home/lvuser) a location on the RIO? It seems like it. What's the deploy.kill.command? Are the -t -r command line arguments? I'd assume the /usr/local/frc/bin/frcKillRobot.sh is also on the RIO. Given debug.flag.dir=/tmp/, could you SSH the RIO to look at that and is it a debug log? Questions for every line in that file.

Anyway, if anyone can answer any of those questions, I'd appreciate it. If you have any other questions about the nitty gritty of FRC Java projects, here's the thread to post 'em. Thanks!
Reply With Quote
 


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 10:39.

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