View Single Post
  #1   Spotlight this post!  
Unread 13-01-2015, 12:32
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 147
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
In need of help with FTP.

Hi,

I'm not very good at networking (but i'm good at syntax in coding so i guess that's why im a programmer), but I know you could transfer files between the cRio and the computer via FTP last year. I know what FTP stands for but I honestly don't know how to use it to our potential. Let alone code it (Java).

I'd like to load joystick configuration files into the code via a .txt file. (so if we want to change controls quickly we can do it without rebuilding, we just change a .txt file). I tried a local .txt file on the computer and after several minutes of pondering why the robot couldn't find the file, I realized I was a bit tired.

Anyways, I was hoping if anyone could help me out. I'd like to easily change a .txt file hosted on the RIO and have the robot scan numbers into the code. I have the scanner class and such coded it's just a matter of getting the correct directory in the code.

So my question - how do I access the RIO via FTP, and where do I find the directory of a file located on the rio?
__________________
2791 (2012-2017)