|
Re: Talon Question
In order to command the motors you need to call the .set() method
so something like StageOneTalon.set(1); will drive it at full speed.
I didn't see this anywhere in your code, maybe I overlooked it?
On another note, it seems like you are creating multiple references of the same class unnecessarily. I.E. creating a new Team3375 reference in your drive class.
All of your functional classes (i.e drive, shooter) should be independent of your main Class (Team3373) . In other words you should not need to create a new instance of your main class in your functional classes.
Once your functional classes are defined. Your main class (Team3375) should import those classes and create instances of them, then call the methods within them.
I would suggest you do a search on github and chief delphi for some 2012 FRC example code, and maybe move to a more structured Java environment like iterative or commandBase.
We personally use commandBase, and while we find iterativeRobot to be the easiest to grasp out of the box amongst students, we find CommandBase to be the easiest to code once you grasp the architecture.
Hope this helps,
Kev
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
|