Go to Post Would FIRST be as amazing if not for CD? I mean it would still be this amazing place for students and mentors to be but the explosion of innovation and gathering of people together across communities has to have been greatly effected by CD. - dodar [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2009, 16:46
ringo115 ringo115 is offline
Registered User
FRC #1647
 
Join Date: Jan 2009
Location: New Jersey
Posts: 42
ringo115 is on a distinguished road
Autonomous Question

alright well im in a situation, we came up with a autonamous mode we think might work, but the problem is that we dont know how to identify movement, an example, if i were to have it make a figure 8 how would i tell it to move in a particular direction.
  #2   Spotlight this post!  
Unread 20-01-2009, 16:51
CDH Jeff's Avatar
CDH Jeff CDH Jeff is offline
Registered User
FRC #2450 (Raiderbots)
Team Role: Electrical
 
Join Date: Feb 2008
Rookie Year: 2008
Location: St. Paul
Posts: 35
CDH Jeff is an unknown quantity at this point
Re: Autonamous Question

tell one side of the robot's wheels to go forward at full speed for X amt of time, and then have the other side to move forward for X, and then guess and check till it works. sorry if this isn't the format you would like, i just asked one of our programmers and this is what he told me.
__________________
"why are 'standard' and 'metric' different?! metric should be the standard!"
  #3   Spotlight this post!  
Unread 20-01-2009, 20:04
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Autonamous Question

It depends. What Jeff is talking about is something like what we did for Overdrive, where we knew the speed we were traveling, the length of the field, and had a closed-loop steering system. This type of autonomous generall works best for situations where
  1. Variables are limited. Since this system can't account for outside influences, anything unanticipated,(like running into something) will cause severe error
  2. All the details can be programmed(and tested) ahead of time
  3. The maneuver involves few changes in velocity or heading(even assuming no collisions, a small amount of error will accumulate every time you make a change)

Because of this, I would actually recommend aginst this system for a game like this. A figure eight is relativley complicated, and it's likely that you'll hit something at some point, as well as the fact that every time you skid you're going to lose accuracy. I would recommend that you either

1.Pick a simpler manuever and use Jeff's method, or
2.Use a closed-circuit autonomous. You could, for example, use an encoder or accelerometer to measure ground speed and a gyro to measure heading, which would give you all the info that you needed.
__________________
Get yer robot source code here!
  #4   Spotlight this post!  
Unread 20-01-2009, 20:14
p00rleno p00rleno is offline
Team Advisor & Former Team Leader
AKA: Andy
FRC #2590 (Nemesis)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: NJ
Posts: 29
p00rleno is on a distinguished road
Re: Autonamous Question

Quote:
Originally Posted by nathanww View Post
A figure eight is relativley complicated, and it's likely that you'll hit something at some point, as well as the fact that every time you skid you're going to lose accuracy.

Yeah, dead reckoning isn't bound to work so well because unlike overdrive, every team will NOT have the same/similar objectives during Autonomous period. Therefore, the mode will somehow need to consider what happens to the robot if it collides and not just continue to drive straight if it gets head on to the wall.
  #5   Spotlight this post!  
Unread 22-01-2009, 00:37
RyanW RyanW is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: MD
Posts: 40
RyanW has a spectacular aura aboutRyanW has a spectacular aura about
Re: Autonamous Question

If you want to identify movement you probably want some combination of gyro, accelerometer, and/or encoder sensors. I don't have much experience with any of these, but:
The gyro should tell you how your robot is turning
The accelerometer should be able to tell you acceleration in two directions, which you can integrate to get speed and again to get position (it can also be useful for other code, like traction control)
Encoder sensors can be mounted with wheels to tell you exactly how much they're spinning, and you can get distance by counting the ticks and multiplying by a constant factor. Of course, if your wheels are slipping your encoder count won't match your distance traveled...

If you just want your robot to move, all you need to do is drive the motors like you would in the teleoperated period (although not from a joystick, since you can't read from those during autonomous).
Closed Thread


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 play question nelsonabo FIRST Tech Challenge 1 23-10-2006 22:59
Autonomous Question..... slickguy2007 General Forum 5 09-02-2005 23:04
Autonomous testing question tml240 Programming 8 24-02-2004 16:12
Newbie Autonomous Question(s) Paradox1350 Programming 21 16-02-2004 13:47


All times are GMT -5. The time now is 21:49.

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