Go to Post This is a very cool robot. It doesn't look like a launcher... it looks like a lifter driving backwards. Then whammo! The ball is flying through the air. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 07-01-2016, 03:08 PM
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 97
Coach Seb is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2016, 03:51 PM
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 293
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
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.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2016, 01:54 AM
olidem123 olidem123 is offline
Not a community manager
AKA: Olivier Demers
FRC #5618 (PLS)
Team Role: Leadership
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Canada
Posts: 12
olidem123 is an unknown quantity at this point
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.
__________________
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 11:38 AM.

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