Go to Post It's just a game. - 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 Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 03-06-2015, 04:49 PM
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 232
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Programmers on the Drive Team

Why did you guys decide on limit switches instead of encoders?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #17   Spotlight this post!  
Unread 03-06-2015, 05:24 PM
Lij2015's Avatar
Lij2015 Lij2015 is offline
I like turtles
AKA: Elijah Steele
FRC #2363 (Triple Helix)
Team Role: College Student
 
Join Date: Apr 2013
Rookie Year: 2012
Location: Newport News, Va
Posts: 119
Lij2015 has a spectacular aura aboutLij2015 has a spectacular aura about
Send a message via MSN to Lij2015
Re: Programmers on the Drive Team

I have a score button(for placing the totes) and I have control of the roller mechanism. I usually also put an inverse throttle trigger on there for myself(This was super useful last year)

Programming to your needs specifically is super useful
__________________
Alumni turned volunteer!
2016 Chesapeake District volunteer, Scorekeeper/Game announcer.

Team 2363 Proud Alumni, Programmer/Driver 2013, 2014, 2015(Captain)
2016 Northern Virginia Winners (1418 and 2421)
2016 Hampton Roads Finalists(1885 and 5954)
2015 Chesapeake Regional Winners(1690 and 4050)
2015 Virginia Regional Winners(384 and 1610)
2014 Chesapeake Regional Winners(1629 and 623)
2013 Virginia Regional Finalists (3015 and 2053)
  #18   Spotlight this post!  
Unread 03-09-2015, 11:49 AM
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Programmers on the Drive Team

Quote:
Originally Posted by GeeTwo View Post
We have limit switches on our lift as well, actually four. We used some long-lever switches from Jameco and bent the arms up about 45 degrees one needle-nose-plier width beyond the end of the switch, and down about 90 degrees another plier width down. It ended up looking something like this:
Code:
 
   _________/\
  ┌───────┐   \
  │       │    \
  └───────┘
We mounted this inside our lift channel beside the place where our lift plate passed. As the plate reaches the switch, it pushes back on that 90 degree bend, activating the switch. The long lead at the end keeps the lift from jamming the switch on the return stroke, which was a problem we had with rollers that weren't precisely aligned.

Edit: I attached a photo of how our roller limit switches were mounted.
Interesting. That's an eloquent solution, our original idea was something like that. Thank you!
  #19   Spotlight this post!  
Unread 03-09-2015, 12:15 PM
JamesCH95's Avatar
JamesCH95 JamesCH95 is online now
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,799
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Programmers on the Drive Team

Three words: magnetic limit switches. Switched (rim-shot) to these in 2013 and have never looked back.

http://www.mcmaster.com/#magnetic-switches/=w8hmkk

We used numerous magnetic limit switches, supplemented with encoders, to pre-program positions for our tote collector and to implement safety-interlocks on most of our robot's mechanisms.
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #20   Spotlight this post!  
Unread 03-09-2015, 12:28 PM
lark95's Avatar
lark95 lark95 is offline
Red Ranger
AKA: Joe L.
FRC #3418 (RoboRiot)
Team Role: Driver
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Wisconson
Posts: 115
lark95 is a glorious beacon of lightlark95 is a glorious beacon of lightlark95 is a glorious beacon of lightlark95 is a glorious beacon of lightlark95 is a glorious beacon of light
Re: Programmers on the Drive Team

i am primary driver this year, (not a programer) Really the only thing that our programer aded to the drive is a 50% slowdown on the drive for when getting rcs of the step. We are not even using a gyro on our mecnum drive this year. We had one that worked but i felt that it was just not needed. It almost made the drive feel like it was unnatural. The drive is so much more fluid without it.


On another note, last year i had a button to reverse the front and back of the bot. We shot one direction and picked up the other direction. It was a nice function to show off but it became disorienting to drive with, i always forgot witch way it was going to go if i had been stopped for to long. Never used it much.
  #21   Spotlight this post!  
Unread 03-09-2015, 01:20 PM
Shaif Shaif is offline
Registered User
FRC #5580 (SQUAD)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Toronto
Posts: 17
Shaif is an unknown quantity at this point
Re: Programmers on the Drive Team

One thing that our mentor team (Team 188) suggested we would do is add an override to our limit switches in case of failure during a match. We didn't think we would need it but literally the game right after putting the override into our code we ended up using it because of a gutsy move on my end trying to get as high as I could on our lift system which in return broke the limit switch.

So the lesson learned here is that always have a backup plan for any point of failure so that way you will always be prepared for whatever may happen on the playing field.
  #22   Spotlight this post!  
Unread 03-09-2015, 01:23 PM
Shaif Shaif is offline
Registered User
FRC #5580 (SQUAD)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Toronto
Posts: 17
Shaif is an unknown quantity at this point
Re: Programmers on the Drive Team

Quote:
Originally Posted by JamesCH95 View Post
Three words: magnetic limit switches. Switched (rim-shot) to these in 2013 and have never looked back.

http://www.mcmaster.com/#magnetic-switches/=w8hmkk

We used numerous magnetic limit switches, supplemented with encoders, to pre-program positions for our tote collector and to implement safety-interlocks on most of our robot's mechanisms.
Can you post a picture of them on the robot?
  #23   Spotlight this post!  
Unread 03-09-2015, 01:29 PM
Gregor's Avatar
Gregor Gregor is offline
#StickToTheStratisQuo
AKA: Gregor Browning
no team
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Kingston, Ontario, Canada
Posts: 2,447
Gregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond repute
Re: Programmers on the Drive Team

Quote:
Originally Posted by JamesCH95 View Post
Three words: magnetic limit switches. Switched (rim-shot) to these in 2013 and have never looked back.

http://www.mcmaster.com/#magnetic-switches/=w8hmkk

We used numerous magnetic limit switches, supplemented with encoders, to pre-program positions for our tote collector and to implement safety-interlocks on most of our robot's mechanisms.
We love WCP's hall effect sensors. Light, cheap, and very easy.

http://www.wcproducts.net/sensors
__________________
What are nationals? Sounds like a fun American party, can we Canadians come?
“For me, insanity is super sanity. The normal is psychotic. Normal means lack of imagination, lack of creativity.” -Jean Dubuffet
"Insanity is doing the same thing over and over again and expecting different results." -Albert Einstein
FLL 2011-2015 Glen Ames Robotics-Student, Mentor
FRC 2012-2013 Team 907-Scouting Lead, Strategy Lead, Human Player, Driver
FRC 2014-2015 Team 1310-Mechanical, Electrical, Drive Captain
FRC 2011-xxxx Volunteer
How I came to be a FIRSTer
<Since 2011
  #24   Spotlight this post!  
Unread 03-09-2015, 01:54 PM
JamesCH95's Avatar
JamesCH95 JamesCH95 is online now
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,799
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Programmers on the Drive Team

Quote:
Originally Posted by Shaif View Post
Can you post a picture of them on the robot?
I'm sorry, I don't have any decent close-ups of the switches we've used.

We've attached them with VHB or small screws, and they work well with ~1-2mm air gap between the magnet and the switch.

When we have the robot un-bagged I'll see about getting a photo or two of them.
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #25   Spotlight this post!  
Unread 03-10-2015, 10:42 PM
AWoL's Avatar
AWoL AWoL is offline
Lvl. 225 Dark Code Mage (Java Type)
AKA: Adam Wolnikowski
FRC #0225 (TechFire)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: York, Pennsylvania
Posts: 116
AWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond repute
Re: Programmers on the Drive Team

I'm the lead programmer, as well as the driver. I made our mecanum drive move the same speed in each direction
__________________
2016 Competition Results (Co-captain, Driver, and Lead Programmer; Junior)
Springside-Chestnut Hill District Event - WINNER / #2 Seed, #1 Seed's First Pick / Gracious Professionalism Award
Westtown District Event - WINNER / #1 Seed / Industrial Design Award
MAR District Championship - WINNER / #1 Seed / Industrial Design Award / Dean's List Finalist Award (Me)
World Championship, Carson Subdivision - QUARTERFINALIST / #3 Seed, #2 Seed's First Pick
Indiana Robotics Invitational - FINALIST / #14 Seed, #2 Seed's Second Pick
  #26   Spotlight this post!  
Unread 03-10-2015, 11:44 PM
ShinyShips's Avatar
ShinyShips ShinyShips is offline
Former Operator and Captain
AKA: Andy
FRC #3314 (Mechanical Mustangs)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Clifton, NJ
Posts: 22
ShinyShips is on a distinguished road
Re: Programmers on the Drive Team

We've added a few things to make driving easier, manual compressor off (in case of brown outs), ability to lock our swerves to front/back movement, auto line up with totes, ability to rotate around the stack, and were able to switch between robot and field centric.
  #27   Spotlight this post!  
Unread 03-11-2015, 12:57 AM
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,033
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Programmers on the Drive Team

Quote:
Originally Posted by AWoL View Post
I'm the lead programmer, as well as the driver. I made our mecanum drive move the same speed in each direction
Can you describe in more detail what you mean by this?
  #28   Spotlight this post!  
Unread 03-12-2015, 12:23 AM
AWoL's Avatar
AWoL AWoL is offline
Lvl. 225 Dark Code Mage (Java Type)
AKA: Adam Wolnikowski
FRC #0225 (TechFire)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: York, Pennsylvania
Posts: 116
AWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond repute
Re: Programmers on the Drive Team

A normal mecanum drive moves forwards/backwards at 100% speed, strafes at 50% speed, and moves at a proportional percentage at angles in between. With my code, our drive moves at the same speed in each direction, essentially handling like an omni-drive. Hope I explained it.
__________________
2016 Competition Results (Co-captain, Driver, and Lead Programmer; Junior)
Springside-Chestnut Hill District Event - WINNER / #2 Seed, #1 Seed's First Pick / Gracious Professionalism Award
Westtown District Event - WINNER / #1 Seed / Industrial Design Award
MAR District Championship - WINNER / #1 Seed / Industrial Design Award / Dean's List Finalist Award (Me)
World Championship, Carson Subdivision - QUARTERFINALIST / #3 Seed, #2 Seed's First Pick
Indiana Robotics Invitational - FINALIST / #14 Seed, #2 Seed's Second Pick
  #29   Spotlight this post!  
Unread 03-12-2015, 12:42 AM
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,033
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Programmers on the Drive Team

Quote:
Originally Posted by AWoL View Post
A normal mecanum drive moves forwards/backwards at 100% speed, strafes at 50% speed, and moves at a proportional percentage at angles in between. With my code, our drive moves at the same speed in each direction, essentially handling like an omni-drive. Hope I explained it.
For a hypothetical mecanum drive, top speed in the forward direction is 10fps, and top speed in the strafing direction is 5fps, and at other angles the top speed is between these two speeds. With your code implementation, feedback is used to assure that the robot's top speed never exceeds 5fps, regardless of which angle the robot is moving.

Is this a correct interpretation of what you did?
  #30   Spotlight this post!  
Unread 03-12-2015, 09:50 AM
JamesCH95's Avatar
JamesCH95 JamesCH95 is online now
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,799
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Programmers on the Drive Team

Quote:
Originally Posted by AWoL View Post
A normal mecanum drive moves forwards/backwards at 100% speed, strafes at 50% speed, and moves at a proportional percentage at angles in between. With my code, our drive moves at the same speed in each direction, essentially handling like an omni-drive. Hope I explained it.
Why do you think that this is advantageous?
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
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


All times are GMT -5. The time now is 04:26 PM.

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