ROBOTC.net forums
http://www.robotc.net/forums/

Robot follows program incorrectly
http://www.robotc.net/forums/viewtopic.php?f=11&t=3840
Page 1 of 1

Author:  Dmonlrdtrace [ Wed Dec 07, 2011 1:55 pm ]
Post subject:  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.

Author:  magicode [ Wed Dec 07, 2011 2:03 pm ]
Post subject:  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.

Author:  Dmonlrdtrace [ Fri Dec 09, 2011 1:29 pm ]
Post subject:  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 279 times

Author:  jbflot [ Tue Dec 13, 2011 11:29 am ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/