Go to Post Gears will win matches. Climbing will win events. Fuel will win championships. - Taylor [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2016, 18:04
ROUS ROUS is offline
Team 321 Mentor / Team 103 Alum
FRC #0321 (RoboLancers)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 1999
Location: Philadelphia, PA
Posts: 4
ROUS is an unknown quantity at this point
Question Mentor seeking advice.

Hi, so I'm a former FIRST team member (animation, oddly enough) and I've just begun mentoring a team for the 2016 build season.

My primary skill set rests in fabrication and mechanical, however I have past experience with electronics and programming. I'd like to acquire a working knowledge of the communication/control system so that I might be of more use to the team. I haven't been on a FIRST robotics team since I was in high school (think 2001) so I'm a little out-of-the-loop, technology-wise.

Where does one start learning about Talons and LabView and C++, and making them all work together? Is there an inexpensive starter kit I can buy to tinker with at home, and learn how to write code to control a simple robot?
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2016, 18:14
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: Mentor seeking advice.

I'm no programmer, but I think a read through the FRC Control System page might be a decent place to start
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2016, 19:19
Jacob C. Jacob C. is offline
Engineer at CTR Electronics
FRC #4130 (The Blue Devils)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Richmond, MI
Posts: 20
Jacob C. is a glorious beacon of lightJacob C. is a glorious beacon of lightJacob C. is a glorious beacon of lightJacob C. is a glorious beacon of lightJacob C. is a glorious beacon of light
Re: Mentor seeking advice.

Quote:
Originally Posted by BBray_T1296 View Post
I'm no programmer, but I think a read through the FRC Control System page might be a decent place to start
Agreed - This is probably the best place to start.

If you want to know more about the Talons specifically, CTR has their Talon User Guide on the Talon product page that is extremely useful. There's also links there for their software reference guide and github repository that contains a lot of code examples.


As far as kits... there's a few options that come to mind, but most of them aren't necessarily ideal.

In no specific order:

- The best option in my opinion would be to borrow some components from your team if they'll let you (either post-season or spares if they have them), but I know that's not always an option.

- AndyMark does sell a control kit , but as it's $1,195 I don't think it's exactly what you're looking for.

- If you're willing to go back a couple years and your team still has the old components around that they're willing to lend you (since they're not competition legal anymore), you could use the "old" 4-slot CRio and power distribution board, digital sidecar, etc. This isn't necessarily recommended because there have been several changes over the last couple years and you'll have to re-learn some stuff for the current control system, but it's free.

- The last option I can think of is probably the most cost-efficient if you can't borrow components from your team, but it's also the least FRC specific. CTR sells a Hero board that can be used for development and is only $60. It's C# and uses the .NET framework as opposed to LabView or C++ and the Rio architecture, but the general principles of robot control are the same - you could translate code without too much difficulty.

The Hero uses CAN, so you could buy a couple Talons to use with it, or you can use a couple of the gadgeteer ports on the Hero for PWM and use any of the other FRC legal motor controllers (Having used them this year, my new personal favorite is the Talons. They're a bit more expensive but you can do a LOT with them and the CAN bus.).

The only other thing you would need with this setup is a reliable power supply for the board and any motor controllers you would be using. The PDP is expensive, but if you have an old blue PDB lying around (again, borrowing team components) or another power distribution method, you could get a VRM to regulate power for the Hero board.

Add in a $20 - $30 USB joystick/gamepad and the electrical components with this method (not counting some kind of power distribution) would run you about $270 with the board and two motor controllers. Still a decent chunk of change but a lot cheaper than a whole control system if you're just trying to learn basic robot control.


Sorry for the wall of text, I tend to ramble a bit.

Your best option is still borrowing components, but in the mean time take a look at the control system documentation mentioned. CD is happy to help if you have more questions or you can PM me.

Good Luck!
__________________
FiM Volunteer
Since 2015: Controls Mentor for FRC 4130, The Blue Devils (Richmond, MI)
2009-2014: FRC Team 1718, The Fighting Pi

Full Disclosure: I am an Engineer for CTR Electronics

Last edited by Jacob C. : 24-02-2016 at 19:22. Reason: Grammar
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2016, 19:42
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Mentor seeking advice.

Quote:
Originally Posted by ROUS View Post
Hi, so I'm a former FIRST team member (animation, oddly enough) and I've just begun mentoring a team for the 2016 build season.

My primary skill set rests in fabrication and mechanical, however I have past experience with electronics and programming. I'd like to acquire a working knowledge of the communication/control system so that I might be of more use to the team. I haven't been on a FIRST robotics team since I was in high school (think 2001) so I'm a little out-of-the-loop, technology-wise.

Where does one start learning about Talons and LabView and C++, and making them all work together? Is there an inexpensive starter kit I can buy to tinker with at home, and learn how to write code to control a simple robot?
You are in Philly?
Any chance you are a NextFAB member like me?

I might be willing to work out something to give a class with my robot and control systems.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2016, 19:45
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 841
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: Mentor seeking advice.

GameSense did a show on the current control system last year as part of our Behind The Lines series.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2016, 20:03
ROUS ROUS is offline
Team 321 Mentor / Team 103 Alum
FRC #0321 (RoboLancers)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 1999
Location: Philadelphia, PA
Posts: 4
ROUS is an unknown quantity at this point
Re: Mentor seeking advice.

Quote:
Originally Posted by techhelpbb View Post
You are in Philly?
Any chance you are a NextFAB member like me?

I might be willing to work out something to give a class with my robot and control systems.
I was a nextfab member, but I let my membership lapse when I moved away from Washington Ave. and I stopped going very often. I took classes in ShopBot, laser cutting and 3D printing, but never got anywhere near any robots.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-02-2016, 20:08
ROUS ROUS is offline
Team 321 Mentor / Team 103 Alum
FRC #0321 (RoboLancers)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 1999
Location: Philadelphia, PA
Posts: 4
ROUS is an unknown quantity at this point
Re: Mentor seeking advice.

Quote:
Originally Posted by Jacob C. View Post
Agreed - This is probably the best place to start.

Your best option is still borrowing components, but in the mean time take a look at the control system documentation mentioned. CD is happy to help if you have more questions or you can PM me.

Good Luck!
Wow, lots of good information in here, thanks! I guess I've been looking around at all of the beginner robot kits in the $100-200 range and figured there'd be something in there that might be a good intro to the sorts of systems we use in FRC.

The team has been around for a few years; I'm going to ask the coach if he can lend me some outdated hardware to play with on my own time.
Reply With Quote
  #8   Spotlight this post!  
Unread 24-02-2016, 20:54
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,213
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Mentor seeking advice.

Pick one language: Labview, Java, C++

This will tell you about the Control System
https://wpilib.screenstepslive.com/s/4485

Eventually you will want to get to the libraries that have routines already written to access the major components. The following is the C++ library.
http://first.wpi.edu/FRC/roborio/rel...annotated.html

Somewhere, there is Sample Robot that has the basics structure.
http://wpilib.screenstepslive.com/s/...g-a-base-class

I believe the order the functions are called are:

RobotInit
AutonomousInit
AutonomousPeriodic (called repeatedly during Autonomous)
TeleopInit
TeleopPeriodic (called repeatedly during Teleop)

those are the main ones we use, but there are others:
http://users.wpi.edu/~bamiller/WPIRo...ive_robot.html
Reply With Quote
  #9   Spotlight this post!  
Unread 24-02-2016, 21:03
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Mentor seeking advice.

Quote:
Originally Posted by ROUS View Post
I was a nextfab member, but I let my membership lapse when I moved away from Washington Ave. and I stopped going very often. I took classes in ShopBot, laser cutting and 3D printing, but never got anywhere near any robots.
That would be because I was not bringing an FRC robot there at the time

I live in Northern, NJ and as a NextFAB member I could come there with said stuff.
Hence it works for me to go 2.5 hours south.

It would simply be neutral space and since you had to pass shop safety to get to the ShopBot at least I know you know how to not dismember yourself

Last edited by techhelpbb : 24-02-2016 at 21:06.
Reply With Quote
  #10   Spotlight this post!  
Unread 25-02-2016, 14:54
GreyingJay GreyingJay is offline
Robonut
AKA: Mr. Lam
FRC #2706 (Merge Robotics)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ottawa, Canada
Posts: 782
GreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond repute
Re: Mentor seeking advice.

The wpilib Eclipse plugin includes lots of example programs. Just go New->Project and select wpilib Java Example or C++ Example. You'll get a window with a list of examples. Select one and start poking around.

Would have saved me a lot of time and Googling had I known about this during last year's build season!
Reply With Quote
  #11   Spotlight this post!  
Unread 25-02-2016, 15:00
couvillion couvillion is offline
Registered User
FRC #1818
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: shreveport LA
Posts: 53
couvillion is an unknown quantity at this point
Re: Mentor seeking advice.

Has anyone played with this SparkFun Inventor's Kit for LabVIEW with an eye towards learning LabVIEW for FRC?
Reply With Quote
  #12   Spotlight this post!  
Unread 25-02-2016, 16:25
JStein JStein is offline
Registered User
AKA: Justin Steinlage
FRC #1756 (Argos)
Team Role: Engineer
 
Join Date: Feb 2016
Rookie Year: 2006
Location: Central Illinois
Posts: 6
JStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of lightJStein is a glorious beacon of light
Re: Mentor seeking advice.

A couple of Team Argos mentors (me included) worked through the off season to build a training platform for the FRC community. We've used the Argobot throughout our build season to get our software/controls students up to speed quickly, with many students able to go from never having run LabVIEW to getting the Argobot running in 60 minutes. They've learned about using touch, proximity, ultrasonic and inertial sensors over the past 6 weeks, most of which are being used on our robot. It's based on the Digilent WF32 board running LINX, and has a whole host of tutorials on YouTube to get started.
Reply With Quote
  #13   Spotlight this post!  
Unread 25-02-2016, 21:48
ROUS ROUS is offline
Team 321 Mentor / Team 103 Alum
FRC #0321 (RoboLancers)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 1999
Location: Philadelphia, PA
Posts: 4
ROUS is an unknown quantity at this point
Re: Mentor seeking advice.

Quote:
Originally Posted by JStein View Post
A couple of Team Argos mentors (me included) worked through the off season to build a training platform for the FRC community. We've used the Argobot throughout our build season to get our software/controls students up to speed quickly, with many students able to go from never having run LabVIEW to getting the Argobot running in 60 minutes. They've learned about using touch, proximity, ultrasonic and inertial sensors over the past 6 weeks, most of which are being used on our robot. It's based on the Digilent WF32 board running LINX, and has a whole host of tutorials on YouTube to get started.
This is very cool. The Argos seems like the perfect place to start, however the price is a wee bit steep for an impulse-buy. I guess it's an investment in my knowledge and ability to help the team. Is there no cheaper (think $100-150) way to get into this?
Reply With Quote
  #14   Spotlight this post!  
Unread 26-02-2016, 09:46
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 305
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: Mentor seeking advice.

Quote:
Originally Posted by rich2202 View Post
Pick one language: Labview, Java, C++

This will tell you about the Control System
https://wpilib.screenstepslive.com/s/4485

Eventually you will want to get to the libraries that have routines already written to access the major components. The following is the C++ library.
http://first.wpi.edu/FRC/roborio/rel...annotated.html

Somewhere, there is Sample Robot that has the basics structure.
http://wpilib.screenstepslive.com/s/...g-a-base-class

I believe the order the functions are called are:

RobotInit
AutonomousInit
AutonomousPeriodic (called repeatedly during Autonomous)
TeleopInit
TeleopPeriodic (called repeatedly during Teleop)

those are the main ones we use, but there are others:
http://users.wpi.edu/~bamiller/WPIRo...ive_robot.html
Agreed you should pick one language and work with that... at least while you are on the initial learning curve. Many good references are noted here... but there is one issue I wanted to point. The functions listed there are only defined when using the IterativeRobot base class. There are different/additional functions defined for the SampleRobot and CommandBasedRobot base classes.
__________________
Reply With Quote
  #15   Spotlight this post!  
Unread 26-02-2016, 12:27
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 523
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Mentor seeking advice.

Quote:
...you could get a VRM to regulate power for the Hero board..
HERO can also be powered from straight-12V, or USB if that's easier. See HERO user manual for more info.
Quote:
but the general principles of robot control are the same - you could translate code without too much difficulty.
Yeah our goal is that new Talon/PCM/PDP features get added to HERO first well before FRC season, then over summer features are migrated into WPILIB/LabVIEW. Either way we will try to make the two APIs similar so porting to FRC Java/C++ is easier.
Reply With Quote
Reply


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 06:06.

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