Go to Post "Defense wins qualifying rounds, offense wins championships." - Paul Copioli [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 27-01-2008, 22:09
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,416
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Programming the last thing a robot does...

Has anyone attempted to do a "last move" type of thing with their robot? Such as, at the very last second of the match, I would like to have the robot set itself back into a mode which would make it easier to carry, safer with less stored energy... etc.

Other than having a counter, and after 2:14 of counting... is there any other way to accomplish this? Let me know if you or your team has done this in the past, or if its completely unprecedented. Thanks in advance.
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #2   Spotlight this post!  
Unread 27-01-2008, 22:17
Laaba 80 Laaba 80 is offline
Registered User
AKA: Joey
FRC #1714 (MORE Robotics)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2001
Location: San Jose, CA
Posts: 495
Laaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond repute
Re: Programming the last thing a robot does...

You could do this with a counter, or you could have the strategist watch the clock and have the driver press a button to go back to whatever position you want.
Joey
__________________
Driving Record - 75-43-8
Coaching Record - 92-65
  #3   Spotlight this post!  
Unread 28-01-2008, 14:51
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,416
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Programming the last thing a robot does...

having someone do that manually is something I'd like to avoid. however, it may come to that.
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #4   Spotlight this post!  
Unread 28-01-2008, 14:58
Squirrel Lord's Avatar
Squirrel Lord Squirrel Lord is offline
Down, Down-Right, Right, Punch!
AKA: Alex Cohen
FRC #1425 (Error Code Xero)
Team Role: Mechanical
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Wilsonville OR
Posts: 32
Squirrel Lord will become famous soon enough
Send a message via AIM to Squirrel Lord
Re: Programming the last thing a robot does...

Speaking as someone almost entirely ignorant of programming, I can only really describe things I have seen done in the past. I do know, however, that last year, the programmers were able to make our gripper release the tube whenever the robot was shut off... I will ask them more about this and get back to you.
__________________
Rookie Year: 2007
Teams: Mechanical, OI, Drive and Animation
Competitions Attended: Portland (Semifinals), San Diego (Quarter Finals), Las Vegas (Winners with 254 and 1983), Atlanta (Undefeated in Galileo qualifying, knocked out in first round of non-qualifying matches.)
Webcomic Status: Currently Working on site and art
Expected Arrival Date: Soon
  #5   Spotlight this post!  
Unread 28-01-2008, 15:26
popnbrown's Avatar
popnbrown popnbrown is offline
FIRST 5125 HOTH Lead Mentor
AKA: Sravan S
FRC #5125 (Hawks on the Horizon)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Illinois
Posts: 367
popnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond repute
Re: Programming the last thing a robot does...

Are you sure they programmed it? Once you turn off the bot there's no more code.

I would'nt do this because it may be against the rulse. But if you have a function that overrides the stop command from the field controls, and in that function you could tell it to return back to how it was.
Other than that I would just use a counter.

All though it is your team's choice, that last second may be very useful for you guys, in the sense of the game. That last second might determine who wins the game. So if you really are bored, I would just make the operator of the robot be able to control that action, instead of doing it autonomously.
  #6   Spotlight this post!  
Unread 28-01-2008, 15:36
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,416
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Programming the last thing a robot does...

Quote:
Originally Posted by popnbrown View Post
Are you sure they programmed it? Once you turn off the bot there's no more code.
When a match ends the robot is still on, its just disabled. There might be some code in disabled I could look at... see if theres anything I can tweak.

Quote:
Originally Posted by popnbrown View Post
All though it is your team's choice, that last second may be very useful for you guys, in the sense of the game. That last second might determine who wins the game. So if you really are bored, I would just make the operator of the robot be able to control that action, instead of doing it autonomously.
Anything our robot does in the last second, I doubt, would change the result of the game. Forgive me if I'm wrong, but I don't believe that there are any "continuance" rules... if the robot stops and the ball is still going, the clock runs out and the ball scores, I don't believe that counts.

Also, when I talk about "last second", I mean the last bit of code that executes, so no driver could react that quickly, and it wouldn't waste time during the match.
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #7   Spotlight this post!  
Unread 28-01-2008, 17:05
Laaba 80 Laaba 80 is offline
Registered User
AKA: Joey
FRC #1714 (MORE Robotics)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2001
Location: San Jose, CA
Posts: 495
Laaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond repute
Re: Programming the last thing a robot does...

Quote:
Originally Posted by efoote868 View Post


Anything our robot does in the last second, I doubt, would change the result of the game. Forgive me if I'm wrong, but I don't believe that there are any "continuance" rules... if the robot stops and the ball is still going, the clock runs out and the ball scores, I don't believe that counts.

Also, when I talk about "last second", I mean the last bit of code that executes, so no driver could react that quickly, and it wouldn't waste time during the match.
I dont know what your robot can do, but if you are trying to put the ball on at the end of the match or hurdle, and your code puts the robot back into its home position, and the ball falls off it could make a BIG difference. If you get it on top you get 12 points. That could change a match. When you say the last second, you will probably need to press it 1 or 2 seconds early, so the robot has time to move. Once it is disabled the motors stop. Have your strategist give the driver a count down of time and press the button at say 1 or 2 seconds left. This is my opinion as a programmer - I would rather just press the button because it is easier for me to do. This is my opinion as a driver - I want to push the button because if you know you cant possibly score you can just press the button, and if you could score, dont press it. Our team did this last year and it worked well. Just my 2 cents.
Joey
__________________
Driving Record - 75-43-8
Coaching Record - 92-65
  #8   Spotlight this post!  
Unread 28-01-2008, 17:16
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Programming the last thing a robot does...

Quote:
Originally Posted by efoote868 View Post
Anything our robot does in the last second, I doubt, would change the result of the game. Forgive me if I'm wrong, but I don't believe that there are any "continuance" rules... if the robot stops and the ball is still going, the clock runs out and the ball scores, I don't believe that counts.
In the past the rule has been to let everything come to a complete rest. This year will be interesting to see how balls will be counted as they continue rolling on the field after the game is over.

There may actually be a rule about this already that I am unfamiliar with if someone can quote one that would be cool, but if not a Q&A question may be in order.


As far as moving everything back to a home postion after the match is over, if something is pnuematically driven you can always safely let the air out of the system, and move the components freely that are attached to them, but if it is a motor it may be more difficult unless you backdrive the motor manually (with the motors that can actually be backdriven by hand).

Always keep a tether cable handy and in the worst case scenario bring out your control panel and your tether and put your robot in the home position on the field... or carry it off the field and do it there before returning to your pit if space is a huge issue.
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #9   Spotlight this post!  
Unread 28-01-2008, 17:28
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Programming the last thing a robot does...

Hm... I would think if there was enough time for the software to contract the robot into a movable position, there would be enough time for the driver to get one last lap or hurdle in certain instances. Anyway, why don't you use a tether once the match ends? (Wait, this is against the rules, right? Never mind.) At least you could use a tether once you're off the field, but I guess that defeats the purpose.

Or maybe instead of a button triggering the contraction of the robot, a button that prevents it? The robot automatically folds up unless told otherwise in tight situations?

Last edited by psy_wombats : 28-01-2008 at 18:14.
  #10   Spotlight this post!  
Unread 28-01-2008, 18:03
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: Programming the last thing a robot does...

Quote:
Originally Posted by efoote868 View Post
Has anyone attempted to do a "last move" type of thing with their robot? Such as, at the very last second of the match, I would like to have the robot set itself back into a mode which would make it easier to carry, safer with less stored energy... etc.
We've done this several times by implementing a timer (in EasyC, they provide an interface to the hardware timers, and in MPLab it's pretty easy to write your own timer routines).

For example, last year's robot always used the last 2 seconds of autonomous mode and teleoperated mode to attempt to score a ring (there was no sense in hanging on to it, and no sense in remembering to do it).

We've done variants as well, such as having a switch or button that arms a system to go off at the end of the match.

(We don't have as many "settling time" game issues as we used to... in 2003 our robot automatically lifted itself off the floor at the end of the match by simply having a bunch of pneumatic relays release when the robot was disabled at the end of match).
  #11   Spotlight this post!  
Unread 28-01-2008, 21:03
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Exclamation Re: Programming the last thing a robot does...

There is already a ruling in the Q&A section. I think it was posted today.

When the clock is 0:00 the period is over. There are no more points to be scored, even if the ball is in the middle of a hurdle., it will not count. There are no residual point scoring actions after the clock runs out.

If your team representative(s) haven't read the Q&A section on FIRST Forums, just do it. A lot of questions posted here have already been answered there by the GDC. They have the answers and make the final rulings.

EDIT: Sorry about the confusing answer to the original Question. From past experience, only the KEYANG motors or a worm gear cannot be driven backwards by hand. These definitely require tethering after the match if they are extended.

if using pnuematics, just put in a pressure release valve in a strategic location.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.

Last edited by Jim E : 28-01-2008 at 21:12.
  #12   Spotlight this post!  
Unread 28-01-2008, 21:19
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,416
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Programming the last thing a robot does...

thanks for all the replies.

I talked to a couple mentors today about these ideas. What we're going to implement is mechanical, and not coded. That way, if the robot loses power, or the e-stop button is pressed, the robot will do what it needs to do by itself.

Once again, thanks for everyones input. See you at the competition.
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #13   Spotlight this post!  
Unread 29-01-2008, 08:01
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Programming the last thing a robot does...

Quote:
Originally Posted by Squirrel Lord View Post
Speaking as someone almost entirely ignorant of programming, I can only really describe things I have seen done in the past. I do know, however, that last year, the programmers were able to make our gripper release the tube whenever the robot was shut off... I will ask them more about this and get back to you.
That's easy: wire your pneumatic solenoid for the gripper so that the when it's not energized the gripper is open. When the control is disabled, the user processor's RESET pin (not the reset button) is held to ground. This puts the processor into its initial state. For more info on the initial state of the processor, see the 18f8722 datasheet.

This is very similar to how 1501 (who we were very happy to play with this past two boilermaker regionals) designed their lift mechanesim last year on their elevator robot. In it's normal state, not energized, the solenoid gating air to their lift pistons held the robot in the 'up' position. As soon as the match began, they energized the solenoid to put the robot down. When the match ended, even if they forgot to hit the lift button the robot would used it's stored pneumatic energy to lift the robot when the solenoid became de-energized as the processor entered it's reset state.

You can get some pretty neat endgame stuff out of this. Also remember that airplane servos and motors relax when there is no pwm input (robot disabled), so if you used a spring or something you can get clever there too.

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #14   Spotlight this post!  
Unread 29-01-2008, 11:17
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Programming the last thing a robot does...

Its a Good Idea but if you think about how un-predictable FIRST competitions are, that one second could cost you the championship when it comes down to it.

(That’s what it came to last year... )

JT

Last edited by Jetweb : 29-01-2008 at 13:11.
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
Who does the programming for your team? EHaskins Programming 39 26-11-2006 16:49
Who had the best robot last year? slickguy2007 General Forum 16 05-11-2004 21:51
The Last Chance to Dance for Your 2002 Robot Wayne C. Off-Season Events 0 10-10-2002 22:03
Posting our robot pics, the in thing to do archiver 2001 0 24-06-2002 00:56


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

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