|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|