Go to Post Sorry for the profanity but how about mentioning the "C" word? Commercials? - Pavan Dave [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-2006, 08:52
pclements's Avatar
pclements pclements is offline
Registered User
AKA: Patrick
FRC #1254 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lawrence
Posts: 18
pclements is an unknown quantity at this point
Send a message via Yahoo to pclements
Question autonomous aiming????

Hi, this is my first year programming a robot, and I was wondering if it was possible to switch to the autonomous mode so we can aim automatically?
  #2   Spotlight this post!  
Unread 20-01-2006, 09:06
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: autonomous aiming????

Quote:
Originally Posted by pclements
Hi, this is my first year programming a robot, and I was wondering if it was possible to switch to the autonomous mode so we can aim automatically?
There's nothing magical about autonomous mode. Any code you use in autonomous mode can work in regular mode, and vice versa (with the obvious exception that in autonomous mode you don't get useful inputs from the OI)
  #3   Spotlight this post!  
Unread 20-01-2006, 13:16
pclements's Avatar
pclements pclements is offline
Registered User
AKA: Patrick
FRC #1254 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lawrence
Posts: 18
pclements is an unknown quantity at this point
Send a message via Yahoo to pclements
Re: autonomous aiming????

so you can push a button and it will aim and fire? that's something if i can get it to work. Thanks!!!
__________________
Does the walker choose the path, or the path the walker?" -- Garth Nix
  #4   Spotlight this post!  
Unread 20-01-2006, 13:57
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: autonomous aiming????

what you do is you write a method that will aim and fire for you then you call it from autonomous when you want or you call it when a button is pressed on the OI
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #5   Spotlight this post!  
Unread 20-01-2006, 17:59
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: autonomous aiming????

Quote:
Originally Posted by Cuog
what you do is you write a method...
In C, it's called a function.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #6   Spotlight this post!  
Unread 20-01-2006, 21:14
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: autonomous aiming????

Quote:
Originally Posted by Cuog
what you do is you write a method
Your stuck in C++ land my friend.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan
  #7   Spotlight this post!  
Unread 20-01-2006, 21:22
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: autonomous aiming????

I plan to have an aiming function called from the main loop and autonomous mode. It shouldnt be overly difficult, just take the vector returned by the cam (confidence is the magnitude) and aim the cannon. That is, assuming the cannon has feedback.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan
  #8   Spotlight this post!  
Unread 21-01-2006, 20:04
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: autonomous aiming????

Quote:
Originally Posted by Validius
Your stuck in C++ land my friend.
No im stuck in C# and JAVA where i have always called them methods
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #9   Spotlight this post!  
Unread 20-01-2006, 13:59
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: autonomous aiming????

Quote:
Originally Posted by pclements
so you can push a button and it will aim and fire? that's something if i can get it to work. Thanks!!!
Better yet, have it aim continuously. If you can get that to work, when you push a button it can fire without delay.
  #10   Spotlight this post!  
Unread 20-01-2006, 21:23
Chriszuma's Avatar
Chriszuma Chriszuma is offline
Jack of all trades
AKA: Chris Hammond
FRC #0068 (Truck Town Thunder)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Clarkston, MI
Posts: 290
Chriszuma is just really niceChriszuma is just really niceChriszuma is just really niceChriszuma is just really nice
Send a message via AIM to Chriszuma
Re: autonomous aiming????

Quote:
Originally Posted by pclements
so you can push a button and it will aim and fire? that's something if i can get it to work. Thanks!!!
There are two pins in the competition port that you can connect in order to switch the robot controller into autonomous mode. You can find the pinout in the programming manual probably. Sorry I can't give you more information, but it is really quite a simple manner. We made a nice little dongle that plugs into the competition port with two switches: one for auton and one for disable.
__________________
2006 T3 World Tour: Great Lakes - Waterloo - Palmetto - IRI
2006 Awards: Motorola Quality - RadioShack Innovation in Control

My website: http://zuma.phire.org/
Truck Town Thunder's website: http://trucktownthunder.com/
  #11   Spotlight this post!  
Unread 20-01-2006, 22:31
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: autonomous aiming????

Quote:
Originally Posted by Chriszuma
There are two pins in the competition port that you can connect in order to switch the robot controller into autonomous mode. You can find the pinout in the programming manual probably...
Chris,

The information you refer to is here but I'm not sure that this answers the question...

Mike

Pclements,

Please realize that the competition port is not available during the competition. However...

You could have an aiming function which is called from both autonomous and normal modes. Is this more in line with what you are asking?

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #12   Spotlight this post!  
Unread 20-01-2006, 23:02
Chriszuma's Avatar
Chriszuma Chriszuma is offline
Jack of all trades
AKA: Chris Hammond
FRC #0068 (Truck Town Thunder)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Clarkston, MI
Posts: 290
Chriszuma is just really niceChriszuma is just really niceChriszuma is just really niceChriszuma is just really nice
Send a message via AIM to Chriszuma
Re: autonomous aiming????

Quote:
Chris,

The information you refer to is here but I'm not sure that this answers the question...
No, you're wrong, I definitely answered the question, for I have amazing powers of observation.
__________________
2006 T3 World Tour: Great Lakes - Waterloo - Palmetto - IRI
2006 Awards: Motorola Quality - RadioShack Innovation in Control

My website: http://zuma.phire.org/
Truck Town Thunder's website: http://trucktownthunder.com/
  #13   Spotlight this post!  
Unread 21-01-2006, 07:13
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: autonomous aiming????

Quote:
Originally Posted by Chriszuma
No, you're wrong, I definitely answered the question, for I have amazing powers of observation.
Mr. Betts was just noting that the guy was not actually asking how to switch to autonomous, but how to get his shooting device to always automatically track the goal.
__________________

  #14   Spotlight this post!  
Unread 21-01-2006, 11:23
pclements's Avatar
pclements pclements is offline
Registered User
AKA: Patrick
FRC #1254 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lawrence
Posts: 18
pclements is an unknown quantity at this point
Send a message via Yahoo to pclements
Wink Re: autonomous aiming????

Quote:
Originally Posted by Ryan M.
Mr. Betts was just noting that the guy was not actually asking how to switch to autonomous, but how to get his shooting device to always automatically track the goal.
Ok, you both are right. we need to be able to aim the cannon and shoot the ball into the big giant hole, but we really don't know how to program it to do that. and yes, I am stuck in C++ land.
__________________
Does the walker choose the path, or the path the walker?" -- Garth Nix
  #15   Spotlight this post!  
Unread 21-01-2006, 11:19
pclements's Avatar
pclements pclements is offline
Registered User
AKA: Patrick
FRC #1254 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lawrence
Posts: 18
pclements is an unknown quantity at this point
Send a message via Yahoo to pclements
Re: autonomous aiming????

Quote:
Originally Posted by Mike Betts
Chris,

The information you refer to is here but I'm not sure that this answers the question...

Mike

Pclements,

Please realize that the competition port is not available during the competition. However...

You could have an aiming function which is called from both autonomous and normal modes. Is this more in line with what you are asking?

Mike
yes it is, i was just thinking about that. how can you do that in the C program?
__________________
Does the walker choose the path, or the path the walker?" -- Garth Nix
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
A Warning to Human Players During Autonomous The Lucas General Forum 21 07-04-2005 02:29
Setting Autonomous Settings from OI Tom Saxton Programming 15 27-03-2005 11:45
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 01:02.

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