![]() |
Where to initialize Talon SRX
New to Java coding... transitioning from Labview...
I found code on github for a t-shirt shooter from team 1160 (thank you guys !!!! assuming we can steal with pride, if not, let me know !!!!) We are trying to build a candy shooter and the bot look very similar. From a coding perspective, i am trying to save some time and use their code as the parade is this weekend... I feel like i am almost there but when i try to run it, the code still reference to 2 jaguar controller and we are using 4 TalonSRX... Which file in the code does the controller get defined? I used RobotBuilder in a previous attempt and was entering the port number in RobotBuilder when i was building the subsystem... just cannot find where in the code i will add this info. Any help would be very appreciated! Just not experienced at all with java. Thanks in advance. |
Re: Where to initialize Talon SRX
It will probably be in robotinit, which I believe is in the main robot class. If not, search is your friend. Just try searching for "jaguar", and you'll probably be able to find it.
Also, I would highly recommend reading the SRX manual, as it has a lot of very useful features. One of them, which is useful in your current situation, is making one SRX mimic the output and all the features of another. All you have to do is set the mode on the one that's mimicking the other. |
Re: Where to initialize Talon SRX
Depends; are is it a command-based or an iterative program?
If it's iterative, i'd suggest looking in "Exemple robot Java project" and, if it's command-based, you can either init them in RobotMap.java or in the subsystem. |
| All times are GMT -5. The time now is 08:19 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi