|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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
|
|
#3
|
|||
|
|||
|
Re: Mentor seeking advice.
Quote:
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! Last edited by Jacob C. : 02-24-2016 at 07:22 PM. Reason: Grammar |
|
#4
|
|||
|
|||
|
Re: Mentor seeking advice.
Quote:
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
Re: Mentor seeking advice.
Quote:
|
|
#7
|
||||
|
||||
|
Re: Mentor seeking advice.
Quote:
Quote:
|
|
#8
|
||||
|
||||
|
Re: Mentor seeking advice.
Quote:
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. |
|
#9
|
||||
|
||||
|
Re: Mentor seeking advice.
GameSense did a show on the current control system last year as part of our Behind The Lines series.
|
|
#10
|
|||
|
|||
|
Re: Mentor seeking advice.
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.
|
|
#11
|
||||
|
||||
|
Re: Mentor seeking advice.
Quote:
![]() 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 : 02-24-2016 at 09:06 PM. |
|
#12
|
|||
|
|||
|
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! |
|
#13
|
|||
|
|||
|
Re: Mentor seeking advice.
Has anyone played with this SparkFun Inventor's Kit for LabVIEW with an eye towards learning LabVIEW for FRC?
|
|
#14
|
|||
|
|||
|
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.
|
|
#15
|
|||
|
|||
|
Re: Mentor seeking advice.
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|