View unanswered posts | View active topics It is currently Sat Aug 17, 2019 6:50 pm

Reply to topic  [ 2 posts ] 
Help with Virtual world 
Author Message

Joined: Fri Jun 28, 2013 1:38 pm
Posts: 1
Post 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.

Fri Jun 28, 2013 1:59 pm
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Post 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.


Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT

Fri Jun 28, 2013 2:07 pm
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.