View unanswered posts | View active topics It is currently Tue Jan 16, 2018 9:36 am






Reply to topic  [ 2 posts ] 
Saving data to files. 
Author Message
Rookie

Joined: Wed Jan 27, 2016 2:08 am
Posts: 1
Post Saving data to files.
Our robot is required to run two times. One time to "learn" the map, and the next run will actually run on the map.

However I need to be able to save the pertinent information from the first run. How can I save data to a file in ROBOT C for the VEX IQ?


Wed Jan 27, 2016 2:11 am
Profile
Moderator
Moderator

Joined: Tue May 19, 2015 3:07 pm
Posts: 91
Post Re: Saving data to files.
Is there a reason you need to save the data to a file? Couldn't you just run the maze both times while in the same program? Everything like left turns and right turns just saved into an array while exploring and then read from array while solving?

Code:
task main()
{
   while(learning){
      explore();
   }
   while(notFinished){
      solve();
   }
}


Fri Feb 05, 2016 2:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.