| Arduino Forum ::  Members :: Joris_DP
 Show Posts Pages: [1] 2 3
 1 Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 20, 2013, 05:40:40 pm The code is too large.But I have solve the problem.Thanks a lot.
 3 Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 20, 2013, 02:56:15 pm Thanks a lot, but it doesn't work. I'm trying to make it clear by giving the whole code.Excuse me, but the words who are used in the code are written in dutch. My project is to navigate a robot between rows.The robot can ride automatically with the help of a laserscanner.The laserscanner gives the distance and the angel to an object.Everythings works, but there is only one problem.When the first row is ended, the robot have to turn right.When the second row is ended, the robot have to turn left.You can see it on the picture. meetWaarde = the distance from the object to the laserscanneri = the angle geenRijRechts means: The row is endedHere is the problem... If the first row is ended, the robot has to turn right !First of all I thaugt to work with a counter. If (geenRijRechts == true){ counter = counter ++;if (counter % 2 == 0){ turnLeft;}else{turnRight;}But it does'nt work because the values of the scanner are reading continuously.And the counter goes continue ++, and the robot wil continuously turn left and turn right.With the counter who are recommended have I the same problem.Can someone help?
 4 Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 17, 2013, 08:21:24 am thanks a lot I will try it now and let you know of it works.
 5 Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 17, 2013, 08:09:06 am Excuse me that it was not clear.I want to say: If the boolean is three seconds or more true, than the action must be taken.So:If (boolean == true (for more or for three seconds) ){ counter ++;}
 6 Using Arduino / Programming Questions / Simple question about a boolean on: May 17, 2013, 08:01:37 am hello,Does someone know how to program this:if (boolean == true during three seconds){...}Thanks a lot
 7 Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 23, 2013, 04:05:56 pm How can I create a .flag file ?And how can I perform this in arduino ?
 8 Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 23, 2013, 03:49:52 pm Thanks a lot I don't understand everything of your solution with the dummy file.But I will read and read it again and search on the internet for hoping I find exactly what you mean,because tomorrow I have to show a good working program.
 9 Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 15, 2013, 07:18:26 am When I send the data from matlab directly to arduino, they give a lot problems with the total program.
 10 Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 11, 2013, 10:35:49 am yes, it is possible in MATLAB to close the file after each update.But the updates goes very fast, and in arduino (via gobetwino), I open matlab in de void setup(), it runs constantly.
 11 Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 11, 2013, 09:24:04 am It can be a solution, but how can I make a output.txt file sharable?