View unanswered posts | View active topics It is currently Fri Nov 21, 2014 3:10 pm






Reply to topic  [ 4 posts ] 
Robot follows program incorrectly 
Author Message
Rookie

Joined: Wed Dec 07, 2011 1:45 pm
Posts: 2
Post Robot follows program incorrectly
im a sudent in school messng with these robots so i obvoiusly am not any sort of expert involving these kinds of things... however i am sure that this is a problem.

i downloaded the correct firmware according to insructions and then compiled and downloded a pre-set program to run...however, no matter how many times i run this program with the robot it never does the same thing. help me.


Wed Dec 07, 2011 1:55 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Robot follows program incorrectly
Well, if you think that there is a problem, then you need to give more information. What it your program? It helps to post it so we can see if it is programming issue. When you say pre-set program, are you referring to a sample program? What does the robot do as of now, and what do you expect it to do instead? The more information you give, the more help that you can get.

_________________
sudo rm -rf /


Wed Dec 07, 2011 2:03 pm
Profile
Rookie

Joined: Wed Dec 07, 2011 1:45 pm
Posts: 2
Post Re: Robot follows program incorrectly
i attached the saple progra i am tying to run... it is supposed to move forward while pointing the arm downward until it reaches a ball. then it is supposed to lift the arm (with the ball captured) and start moving backwards until it reaches its starting position once again. at which point it will turn 90 degrees, move forwad slightly, and lower the ball into the drop off zone.

It does EVERYTHING stated... however it will go for shorter or further distances each time i run it without m tampering with the program.

p.s. thanks for the help and any further advice


Attachments:
File comment: this is the robotC program
Moving Forward - Quadrature.c [1.58 KiB]
Downloaded 175 times
Fri Dec 09, 2011 1:29 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Robot follows program incorrectly
The problem you're seeing may be related to to the momentum the robot builds up in each of it's movements, and the corresponding drift that occurs at the end of the movement. Unfortunately drift isn't entirely predictable, but dealing with it is definitely a part of working with robots.

You can do things like try to stop the motors briefly between your movements, or even provide a small amount of braking power to fight the momentum.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Dec 13, 2011 11:29 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.