Go to Post I'd love to see a simple, robust system that connects quickly and dependably. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Spotlight this post!  
Unread 30-03-2007, 20:05
Teched3 Teched3 is offline
Hodge1
FRC #0175 (BuzzRobotics)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 1996
Location: Connecticut
Posts: 319
Teched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud of
Smile Re: Simple dead-reckoning autonomous

Just to help a little in undersanding why so many robots may look as if they are not doing autonomous, I offer the following information:

When the camera is scanning for the light, and can't find it, our robot is programmed to stay put. In my opinion, many of the teams are trying hard to get autonomous to work, and could easily program dead reckoning. However, that's not the challenge - getting the camera to work in guiding the robot to a score is. Winning isn't necessarily related to who scores the most points. Hopefully camera calibration on the playing field will help to make this work. It's how we learn to get better. As an aside, I cannot understand how FIRST expects us to go through our practice matches on thursday without calibration opportunity and a chance to try it out, and then compete on Friday in Qualification matches on Friday on a calibration setting that hasn't been tried on the field.



Quote:
Originally Posted by JimGRobot View Post
This message is a little late, and I suspect there are other similar posts, I just couldn't find them...

Anyway, I have watched hundreds of competition videos, and participated in 2 regionals, and I was very surprised at how few robots attempted any sort of autonomous operations. I have to admit that when I first looked at Rack 'n' Roll autonomous, I thought that anything other than scoring had no value in the game.

However, after watching a lot of games, I came to the conclusion that even just driving forward and blocking the path between the rack and the wall could delay the opposing alliance enough to get some extra scoring done before they start pushing your alliance robots around.

What I hope to do with this post is give some teams a little push, and some helpful information to get going with a simple autonomous program.

The first step is calculating the wheel RPMs needed to achieve the desired distance and turn. I have attached an Excel spreadsheet that tries to help with this. It is not 100% accurate, but I think close enough, but I haven't tested these numbers on an actual robot.

The next step is measuring the wheel RPM. I picked up a LASER tachometer on eBay for about $30, and it does a great job of mesuring wheel speeds. Here is where I got mine, you might find others: (eBay is acting up right now and I can't provide a link, but here is a good search string "digital laser photo tach os".

The third step is adding some sequencing code to your robot program. If you're using EasyC is should be easy to output a value to the motors, wait a little bit, then turn them off. If you're using MPLAB, I have attached a short C file that can be #included in the user_routines_fast.c file, right above the User_Autonomous() function. Inside of this function, call Autonmous_Tick() where it says "put your code here".

This file implements a simple state machine for sequencing through some steps that output to PWMs, or anything else you want. It is a simple version that can be used in a number of applications.

I hope this all makes sense, and that it helps get some teams to try autonomous operations, even this late in the game.

Good luck.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autonomous: CMUCam or dead reckoning? Andrew Blair Rules/Strategy 18 26-02-2005 19:36
dead reckoning st28 Programming 1 24-02-2004 11:34
Dead Reckoning Ryan Cumings Programming 3 24-02-2004 10:57
A DEAD reckoning program rcubes85 Programming 5 19-03-2003 14:21
Probably already covered, but curious, Dead-reckoning or no? Dave Technical Discussion 3 11-01-2003 01:14


All times are GMT -5. The time now is 00:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi