Go to Post it's possible, based on his widespread approval, that Frank is in fact a collection of kittens in a human suit - Andrew Schreiber [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2014, 20:51
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 168
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Constants from a text file

What are the advantages of getting constants from a text file?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2014, 21:09
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Constants from a text file

Off the top of my head
  1. No redeploying every change
  2. Easy to change settings from non-programming computer
  3. Less buggy than Smartdashboard or Preferences
  4. Easy to delete, reset, change
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2014, 21:35
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 168
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Re: Constants from a text file

Quote:
Originally Posted by joelg236 View Post
Off the top of my head
  1. No redeploying every change
  2. Easy to change settings from non-programming computer
  3. Less buggy than Smartdashboard or Preferences
  4. Easy to delete, reset, change
How do you move your changes to the cRIO without redeploying?
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2014, 23:09
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: Constants from a text file

Quote:
Originally Posted by orangelight View Post
How do you move your changes to the cRIO without redeploying?
If you use an FTP client like FileZilla, you can easily edit the constants file from the driver station and upload it to the cRIO. Then you have a method in your code that reads the new values from the file and updates your program accordingly. No recompiling necessary.
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2014, 11:15
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Constants from a text file

Also, if you're interested, I made a tool in C# for managing a Constants file fairly easily. It has the ability to parse a Constants file using the Cheesy Poofs format (each key and value on a new line delimited by an =) and can upload to the robot via FTP.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-02-2014, 16:46
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: Constants from a text file

Also, Windows has built-in support for FTP network locations.

You can add a ftp location (like ftp://10.xx.yy.2, your team's cRio) to the Computer (the location that comes up when you press WinKey+E, then just right click in empty space and select "Add a network location") so you can just browse and edit files through the standard explorer interface, no special client needed.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-02-2014, 17:07
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Constants from a text file

Quote:
Originally Posted by JohnGilb View Post
Also, Windows has built-in support for FTP network locations.

You can add a ftp location (like ftp://10.xx.yy.2, your team's cRio) to the Computer (the location that comes up when you press WinKey+E, then just right click in empty space and select "Add a network location") so you can just browse and edit files through the standard explorer interface, no special client needed.
Was not aware of this. Thanks for the tip!
__________________
All opinions are my own.
Reply With Quote
Reply


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 13:11.

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