View unanswered posts | View active topics It is currently Sun Nov 23, 2014 4:19 pm






Reply to topic  [ 9 posts ] 
Virtual World Palm Island problem 
Author Message
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Virtual World Palm Island problem
Whenever I make adjustments to my Palm Island program, and try to re-run it, parts of the program that were working perfectly are now inconsistent and off course. I'm making changes farther down the program and the beginning of the program suddenly is way off course. What gives?


Tue Sep 10, 2013 6:23 pm
Profile
Moderator
Moderator

Joined: Mon Oct 04, 2010 2:18 pm
Posts: 196
Post Re: Virtual World Palm Island problem
Hi Chris,

Please use the code tags and post your code. I'll be happy to take a look at it and help with your program. Thanks,


Tue Sep 10, 2013 10:40 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Virtual World Palm Island problem
Sorry to hear that you're having trouble. Are you running the latest version of the software, found here: http://robotvirtualworlds.com/palm-island/ ?

If you computer is not able to get consistent frame rates when displaying Palm Island, it can lead to inconsistencies in the virtual world. In the latest version of the software, on the main menu, if you go to "OPTIONS > GRAPHICS QUALITY", you can turn the game down to "LOW" to make it less resource intensive. You can also uncheck "VISUAL EFFECTS" if you're still having trouble.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Wed Sep 11, 2013 9:18 am
Profile
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Re: Virtual World Palm Island problem
Here is the program. I just wanted to write a simple program using time as the variable to navigate. As far as I know I have the latest version of Palm Island. I just purchased Virtual World and downloaded Palm Island.



[code][/code]task main()
{
motor[motorB] = 50;
motor[motorC] = 50;
wait1Msec(3600);

motor[motorB] = 50;
motor[motorC] = -50;
wait1Msec(975);

motor[motorB] = 50;
motor[motorC] = 50;
wait1Msec(4000);

motor[motorB] = -50;
motor[motorC] = 50;
wait1Msec(950);

motor[motorB] = 50;
motor[motorC] = 50;
wait1Msec(8700);

motor[motorB] = 50;
motor[motorC] = -50;
wait1Msec(975);


}


Wed Sep 11, 2013 5:27 pm
Profile
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Re: Virtual World Palm Island problem
Just ran the program again. First time it ran perfectly. Second time the bot started going off course and eventually hit something (which it did not do the first time). I made the changes on the options, as suggested, and it did make any difference.


Wed Sep 11, 2013 5:36 pm
Profile
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Re: Virtual World Palm Island problem
In the above post, I mean't to type "it did NOT make any difference".


Thu Sep 12, 2013 7:42 am
Profile
Moderator
Moderator

Joined: Mon Oct 04, 2010 2:18 pm
Posts: 196
Post Re: Virtual World Palm Island problem
Hi Chris,

I think I may see the problem. Your robot is moving forward at half speed, then turning, and then moving forward again. Try to think what would happen if this same behavior was repeated in a car. The car would not be able to make the turn without slowing down. These same physics apply to the robot. Without putting a stop in between each movement, the turns are going to be very inconsistent.

Try setting your motor power to zero for a second in between each of your movements. It would look like this:

move forward for some time

stop for a second

turn left for some time

stop for a second....etc.

Let us know if that works. Thanks,


Thu Sep 12, 2013 7:45 am
Profile
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Re: Virtual World Palm Island problem
Parkway, I will try that. I just started teaching (learning) robots at the jr. high level and I'm trying to stay ahead of the kids. :D You know somewhere along the line I remember reading about stopping the bot at turns and I completely forgot about it. Thanks again. I will try out your suggestion later today.
Chris


Thu Sep 12, 2013 8:20 am
Profile
Moderator
Moderator

Joined: Mon Oct 04, 2010 2:18 pm
Posts: 196
Post Re: Virtual World Palm Island problem
I know what you mean. I've been teaching robotics at the junior high level for the past 4 years. Feel free to ask whatever questions you may have. I'd be more than happy to help.


Thu Sep 12, 2013 9:10 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 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.