Quote:
|
Originally Posted by thoughtful
Hey,
i have some question about using sensors for an autonomous mode, last year we had a simple autonomous, with jus some values to the PMW's and it worked about 75%, so it was a good one, cause we were rookies.
Any ways i jus wana clarify on how will u go to programming the sensor autonomous. From what i understand the reflector sensor return a value of 0 or 1 and based on that you can have your robot move. I have one question tho, what if your robot if going straight and the reflector tape jus has an curve as in it turns, and now u get a value of 0 from the sensor, how do u get about to calculating which way to turn.
The other way to program this might be to make it turn a little al the time(as in go left and when the sensor is 0 go right and vice versa) but i dont think this way will be very fast.
Last thing which type of autnomous do you prefer and if u prefer sensors which sensors you prefer.
thanks a lot for ur time. 
|
Wow... Your ideas are all all over...
I will throw a little advice at you... forget the sensors as line trackers and stuff... their are much more effective ways... I would recomend if you are tying to do something similer to 2k3's game use a gyro. A gyro always works as long as you have failsafes in your programming. Remember the gyro will only work as fast as your controller... make sure that you have failsafes for failsafes. Use an indicator also... its a great failsafe. If you want I can run over the basic principal of a gyro with you on AIM sometime. It is very simple to get on the robot.... the hard part is the failsafe programming. If you did a gyro and you tended to get hit from the rear (throw a couple of limit switches on the back of the bot on a bar so that if they are closed your program goes into a lock-motor mode (heats the motors) and continues to count on the gyro with little failure... you can then do a "program jump" to a default program that performs a basic operation. It is very hard to explain with out giving you pictures and some coding to see.. I will see if I can dig something up.
-Greg The Great