QuoteYou didn't answer the first question.I don't know how many values will be stored, it will depend on how long is the path that the car that has the sensors will pass. I imagine will be a lot of values since I have a sensor reading every 35ms
You didn't answer the first question.
that was what I needed thank you. but now how can I use the values that I stored on the file, I was able to read the files back from the file and now I need to use these values. can I go backwards and read these values 3 by 3 as I was reading from the sensors?
I submit you should just cut to what the real problem is, and forget about answering unanswerable questions, for which you probably already have a solution.
what I am doing right now is building a car that goes through a path using 3 ultrasonic sensors and I am storing the values the values the sensors return during the run. I want to use this values on a second car, so essentially the file on the sd card would be the "sensors". Do you think that by running the code that you wrote I will be able to do that?
if(sensor on right<20cm)turnRight()// this is a function of the motor shield
so how can I store the directions the car took?
I understand. so how can I store the directions the car took? and how can I use the information that I put on the file?
I understand. so how can I store the directions the car took? I use if statements to analyze the values for the sensors for example:Code: [Select]if(sensor on right<20cm)turnRight()// this is a function of the motor shieldand how can I use the information that I put on the file?