View Single Post
  #9   Spotlight this post!  
Unread 16-02-2009, 08:33
anyheck anyheck is offline
Registered User
FRC #2242 (Cougars)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New Orleans
Posts: 26
anyheck is on a distinguished road
Re: Saving files on the cRio

Quote:
Originally Posted by Greg McKaskle View Post
My windows machine is being a dog. In trying to answer this question about how RT does paths I was clearly guessing, and to continue that. The error indicates that /foo/ is considered to be a relative path. I think that means that my initial guess was at least closer to the way that RT works, using c:\ to represent root.

The test I'd do is to drop the Temporary Directory path constant on the diagram of your Robot Main. Wire it to an indicator and run the program. The syntax it uses to display the result is what you should use. In fact, the temp directory is a good place to put your files anyway.

Please post the resulting syntax if you would.

Greg McKaskle
Hey Greg,

That sounds like a reasonable plan. I'll try it out next time I get access to the cRIO.

I spent all yesterday letting the kids drive the wheels off of the thing in the cafeteria so I could tune the driver controls to their liking, but we're keeping all of the control electronics so we can put them on another 'bot chassis to try fun things like the vision control.

8 hours of driving on the tile seems to have really widened up the contact patch.

Regards,
Sten

P.S. For anyone who is using some of the smaller motors like window motors to do any substantial amount of work, and don't want them burning out while you run during long practice sessions, try zip-tying a length of stripped battery cable from the metal motor housing to an aluminum frame member. Works as a fast, simple heat sink.
Reply With Quote