Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Can the robot read a text file? (http://www.chiefdelphi.com/forums/showthread.php?t=58625)

CyDrive 03-09-2007 12:51

Can the robot read a text file?
 
Hello, I was just wondering whether or not the robot is capable of reading a text file. Or maybe is it possible to upload a single .c file to the robot at a time? Thank you for any help.

bear24rw 03-09-2007 12:52

Re: Can the robot read a text file?
 
What do you mean by a text file? What would this file have in it?

CyDrive 03-09-2007 12:55

Re: Can the robot read a text file?
 
Can it open a file and parse information in it if the file has a .txt extension

bear24rw 03-09-2007 13:12

Re: Can the robot read a text file?
 
Um not directly, i guess theoretically you could store a file in eeprom and parse it from there or you could get somthing like (http://www.sparkfun.com/commerce/pro...oducts_id=7955) where you could put a .txt file on a SD card and read it from the RC.. if your looking for like autonomous scripting there is a way to do that too using an array of commands, it know it was popular in 2005 but i dont know where to find a link to it now..

AdamHeard 03-09-2007 13:55

Re: Can the robot read a text file?
 
Quote:

Originally Posted by bear24rw (Post 640803)
Um not directly, i guess theoretically you could store a file in eeprom and parse it from there or you could get somthing like (http://www.sparkfun.com/commerce/pro...oducts_id=7955) where you could put a .txt file on a SD card and read it from the RC.. if your looking for like autonomous scripting there is a way to do that too using an array of commands, it know it was popular in 2005 but i dont know where to find a link to it now..

kevinwatson.org has the code w/ autonomous scripting.


Also, CyDrive; It seems like you have something you want to do, why not tell us what you're trying to accomplish and we can reccomend the best way to do that within what the Robot controller can do.

Billfred 03-09-2007 14:02

Re: Can the robot read a text file?
 
Quote:

Originally Posted by AdamHeard (Post 640807)
kevinwatson.org has the code w/ autonomous scripting.


Also, CyDrive; It seems like you have something you want to do, why not tell us what you're trying to accomplish and we can reccomend the best way to do that within what the Robot controller can do.

Right person, wrong URL:

http://kevin.org/frc/

CyDrive 03-09-2007 14:06

Re: Can the robot read a text file?
 
My idea is to create a program that almost any team can use to create an autonomous mode in under 2 minutes. Of course they would have to pre-configure the software with certain variables. Though i think it would be a great idea. I can write all the code i just need to know really how to deliver it to the robot without constantly having to do a re-compile. I believe an upload and reading of a text file would be much better.

bear24rw 03-09-2007 14:29

Re: Can the robot read a text file?
 
Actually this idea has been mentioned here before i know one kid ( i think he has a thread a couple down from yours) that is trying to use a game boy to kinda like what your talking about and if you do a search for USB or mass storage or SD card in the programming forum you will find a thread discussing exactly what your trying to accomplish

CyDrive 03-09-2007 14:37

Re: Can the robot read a text file?
 
Yes I was reading his thread and i thought it was quite interesting and the idea is not my own by any means. Actually it is an accumulation of ideas that i thought would be useful. Imagine on screen of your computer is a picture of the playing field from a top down view of the playing field you just click to place a dot. You can edit the actions your robot does when it reaches that spot or a many multiple things. Though what other people have tried to accomplish isn't very all-around friendly. They are all good ideas but i think it would be easier to use if you just had to upload say a text file with equipment you already have and you already understand. I also think it will make integration with any robot easier.

AdamHeard 03-09-2007 14:44

Re: Can the robot read a text file?
 
Quote:

Originally Posted by CyDrive (Post 640812)
Yes I was reading his thread and i thought it was quite interesting and the idea is not my own by any means. Actually it is an accumulation of ideas that i thought would be useful. Imagine on screen of your computer is a picture of the playing field from a top down view of the playing field you just click to place a dot. You can edit the actions your robot does when it reaches that spot or a many multiple things. Though what other people have tried to accomplish isn't very all-around friendly. They are all good ideas but i think it would be easier to use if you just had to upload say a text file with equipment you already have and you already understand. I also think it will make integration with any robot easier.

Talk to team 40 about their 2006 autonomous.

they had an app on a pocket pc in which you literally drew the autonomous path of the robot and the robot did it. Very impressive. We went to the practice field with them (we were together in the next match) and they watched our autonomous. Right away, they made the perfect custom autonomous to go with ours. Best implementation of autonomous scripting I have ever seen.

CyDrive 03-09-2007 14:52

Re: Can the robot read a text file?
 
I heard about that i heard it was done in Java. It sounded really cool. I will see if they will tell me anything.

Alan Anderson 03-09-2007 15:06

Re: Can the robot read a text file?
 
Quote:

Originally Posted by CyDrive (Post 640797)
Hello, I was just wondering whether or not the robot is capable of reading a text file. Or maybe is it possible to upload a single .c file to the robot at a time? Thank you for any help.

The IFI robot controller does not have access to a filesystem. I think the best alternative for your purpose is to implement your own protocol to read characters from the serial port and store them in EEPROM for later retrieval.

CyDrive 03-09-2007 15:12

Re: Can the robot read a text file?
 
Now i see why team 40 used a hand held device. Thanks everyone for the help. I believe i have finally figured out how im gonna go about it. When i figure it all out i will definitely post all my code and the project.

AdamHeard 03-09-2007 15:23

Re: Can the robot read a text file?
 
Quote:

Originally Posted by CyDrive (Post 640815)
I heard about that i heard it was done in Java. It sounded really cool. I will see if they will tell me anything.

The pocket pc side was done in Java. From there I don't know what they did. It could've generated scripting for something like Kevin Watson's that needed to be copied and pasted. Or, more ideally they probably had the SD card plug into something on the robot like thunderchickens has (or at least crosstheroad electronics).

CyDrive 03-09-2007 15:29

Re: Can the robot read a text file?
 
My theory is actually quite simple write directly to the EEPROM from my laptop with a custom program. Then use a custom scripting engine in the autonomous section. This will give me the 2 things i want. Ease of use and a fast way to create new autonomous modes.


All times are GMT -5. The time now is 00:15.

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