|Help with Virtual world
|Page 1 of 1|
|Author:||yourpawdoc [ Fri Jun 28, 2013 1:59 pm ]|
|Post subject:||Help with Virtual world|
My son just started the class but is about to quit because it is frustrating him and me too!!! When he writes the program and puts in a turn, we will check to see if it works and it does, perfectly. Then we go on and make the robot go straight. We compile and download again and the turn which we have not changed, now turns to far. If you go back and correct the turn by making the time less. It will work. Then we will go on and proceed with the program but when we go back to check it in the virtual program the turn overturns again. (like we had increased the time) If we ignore it and continue programming, every time we compile and download and then look at the simulation all the turns get worse. Eventually the turns will get to 360 degrees or more except our code doesn't say that and when we first entered the code the turn executed perfectly. Please help. I really want us both to learn this.
|Author:||rcahoon [ Fri Jun 28, 2013 2:07 pm ]|
|Post subject:||Re: Help with Virtual world|
If you paste in your son's code using [code][/code] tags, it'll help us figure out what's going on and give you suggestions.
Even if everything's working properly, using timing isn't a very accurate way of controlling turns, and you should expect some variation. You can increase the accuracy of timed movements by decreasing the speed that the robot is moving/turning at. If this were the case, though, I'd expect the robot to under-turn as much as over-turn. Supplying us with the code should give a better idea of what the problem is.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group