View Full Version : autonomous programing
01-14-2003, 03:42 PM
how can you program the robot to find the stack and be able to move right in front of it to pick it up and i understand use triangle and then use sin A over a = sin b over b but there is no sin function in pbasic
01-14-2003, 04:07 PM
First, there is a SIN function. It's not exactly normal, but it is there. Do a search and you'll find a few threads explaining it's idiosyncrocies.
Second, you're going to have to provide a little more info than that. Are you doing this with the optical sensors? If so, how many and in what configuration? What specifically are you trying to do? Are you just trying to find the box? Your range to the box? The angle from your current position to the box? All these things are valid things to do, but they are fairly different in terms of how you go about doing it.
P.S. try to make your posts a little easier to read. There's already one thread here that's dead because nobody could understand the question. Remember: periods and capitalization are your friend! :)
01-14-2003, 04:16 PM
we are using optical and it dosnt matter and i under stand tailers method but i dont want to use it is there a diferent way
01-14-2003, 05:05 PM
Before we get into this too much, please read through this thread (http://www.chiefdelphi.com/forums/showthread.php?s=&threadid=16259) as I really don't want to get into an issue like that again.
I'm really not sure what you mean by "it dosnt matter", could you please explain which part of my post you were referring to? Depending on what you're trying to do, the code can be very different. Anyways, Taylor's method is not necessary here regardless of what you are trying to do, so don't worry about that.
As I said before, you need to provide a little more info before I can give you a meaningful response. For the short term, you can download CogCode2k2 from my website, http://www.robbayer.com/software.html, as it contains some optical sensor code.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.