Go to Post I've been inspired for real engineering during the build season and on the playing field, but the inspiration I found in the pits is often for creative thinking and intuition. - artdutra04 [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 07-02-2008, 08:57
Urban Hawk Urban Hawk is offline
Head of R&D and Head of Scouting
FRC #1886
Team Role: Scout
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Urbana, maryland
Posts: 118
Urban Hawk is infamous around these partsUrban Hawk is infamous around these partsUrban Hawk is infamous around these parts
Lightbulb Re: Holding Down Buttons on the Remote

Well, it is as i said before. If you have it so that the code will be sent only when the button is pressed and when it is released, it wont flood the signals. However the robot will continue to exicute the procedure until the code is sent telling the robot that the button is released. Then it will stop doing the procedure.
__________________
FEAR THE HAWK!!!
  #2   Spotlight this post!  
Unread 07-02-2008, 11:33
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: Holding Down Buttons on the Remote

Quote:
Originally Posted by Urban Hawk View Post
Well, it is as i said before. If you have it so that the code will be sent only when the button is pressed and when it is released, it wont flood the signals. However the robot will continue to exicute the procedure until the code is sent telling the robot that the button is released. Then it will stop doing the procedure.
And the official response is still as the GDC said before. Doing it that way violates the intent of the "only four commands" and "no higher-level encodings" rules.
  #3   Spotlight this post!  
Unread 17-02-2008, 11:50
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: Holding Down Buttons on the Remote

Well, it looks like our autonomous code is good enough that we don't need to worry too much about it...We tested at the Play Date yesterday and were consistently getting at least 2 lines (when we weren't going backwards and getting penalties, that is...)

Currently we do have driving correction type stuff, but it's now on the order of "Override autonomous and move this way for 1 second", which should interfere less than holding the button down...

I agree that holding the button down is not particularly nice to other teams. The hope was that we wouldn't have to do it much, and we certainly wouldn't be using held-down buttons to drive the robot, and so we weren't really thinking about interference issues... However, we have moved away from that scheme, and I do think it's better overall.

Yesterday at the Play Date I saw one team driving by IR command - there are much easier ways to do it if you want to drive that way that don't involve holding buttons down. So after however much complaining I've been doing, I do support GDC's decision on this issue...
  #4   Spotlight this post!  
Unread 17-02-2008, 15:49
theprogrammer theprogrammer is offline
Registered User
FRC #1982
 
Join Date: Feb 2008
Location: Shawnee
Posts: 4
theprogrammer is an unknown quantity at this point
Re: Holding Down Buttons on the Remote

We found a way around your problem, its not perfect but the button does the same thing every time and we hold the button down. For our IR buttons, we used a series of if/else statements with the final else containing a command that sets all of the motors back to neutral. This isnt perfect because our movement is jerky because its continully changed from 255 to 127.
  #5   Spotlight this post!  
Unread 17-02-2008, 23:18
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Holding Down Buttons on the Remote

Quote:
Originally Posted by theprogrammer View Post
... and we hold the button down.
Please be aware that the GDC has said that you cannot hold the button down.

Quote:
Originally Posted by GDC
The contact with the button should be momentary. By having your command contingent upon the length of the button press, you have encoded a variable "how long" command in addition to the "what" command.
http://forums.usfirst.org/showthread.php?t=8565
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
  #6   Spotlight this post!  
Unread 18-02-2008, 00:15
Tim Arnold's Avatar
Tim Arnold Tim Arnold is offline
1902 UCF Mentor; 1523 MARS Alumni
FRC #1902 (Exploding Bacon)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Orlando, FL
Posts: 460
Tim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond repute
Send a message via AIM to Tim Arnold Send a message via MSN to Tim Arnold
Re: Holding Down Buttons on the Remote

Quote:
Originally Posted by ay2b View Post
Please be aware that the GDC has said that you cannot hold the button down.



http://forums.usfirst.org/showthread.php?t=8565
Isn't holding the button down outputting the same thing as rapidly pressing the button? The remote is emitting pulses even if you hold it down...
  #7   Spotlight this post!  
Unread 04-03-2008, 10:44
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Re: Holding Down Buttons on the Remote

Quote:
Originally Posted by Tim Arnold View Post
Isn't holding the button down outputting the same thing as rapidly pressing the button? The remote is emitting pulses even if you hold it down...
that is exactly what i was thinking.
it is sending out pulses. that would be the same as pushing the button really fast.
like for example: if you are sending pulses that drive your robot forward but making the robot "pulse" forward. wouldnt that be legal? because each pulse it doing one action that drives the robot forward a little but. so holding it or pressing it really fast would be the same and drive the bot forward.
__________________
, Sean

TEAM 867
-electrical
-pneumatics
-programming



2008 Autodesk Visualization Grand Prize Winner
  #8   Spotlight this post!  
Unread 04-03-2008, 11:27
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Holding Down Buttons on the Remote

one of our earlier autonomous modes worked like this:

it had two vectors: the forward vector and the angular vector
these vectors constantly return to 0 using a linear ramping technique
when a forward signal is received from the IR board, it ramps the speed up 20%. further presses of the button will yield more speed (linearly, 20 40 60 80 100)
when a turn left/right signal is received, it ramps up the turning vectors inverse-exponentially (to improve turning)
there is also a stop command which would reverse the robot for a couple ticks

we ended up ditching it because it was too borderline within the rules, the IR signal dropped out at the other end, and we made a better autonomous mode after that.

I dunno about the rules though... a single button press always does the same "add 20%" thing, and they arent held down in order to do it. any thoughts?
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #9   Spotlight this post!  
Unread 11-03-2008, 22:29
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: Holding Down Buttons on the Remote

Uberbots,
Seems okay - changing orientation by a fixed amount is legal, and I guess the ramping back would be an autonomous thing.

seanl,
I agree that you could use semantics to get around the "no holding buttons down" rule, but it would be nice to stay within the spirit of GDC's decisions as well as the letter.
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
Buttons, Buttons and more Buttons (2006) Freddy Schurr Team Organization 11 14-12-2005 21:36
pic: Holding the big ball CD47-Bot Robot Showcase 12 23-02-2004 22:14
Remote Remote Kickoff for Southern California ChrisH Southern California Regional Robotics Forum 0 05-01-2004 12:36
Remote Remote Kick off at University High School George1902 Off-Season Events 4 04-01-2004 21:05


All times are GMT -5. The time now is 23:50.

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