Go to Post The real question is not whether any teams have had metal in a speed controller, it's whether any teams haven't. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2015, 16:18
TheTurtleofDoom TheTurtleofDoom is offline
Registered User
FRC #2988
 
Join Date: Feb 2014
Location: Virginia
Posts: 4
TheTurtleofDoom is an unknown quantity at this point
What do the Swigtype classes do in the WPI, I have looked at the documentation

http://first.wpi.edu/FRC/roborio/rel...a/classes.html is where I looked for the documentation, googling wpilibj swigtype had one result.Anyone know what they do?
  #2   Spotlight this post!  
Unread 05-02-2015, 16:27
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation

Did you try just searching "Swigtype"?

While I am not 100% sure, I believe Swigtype is referring to this:

http://www.swig.org/

Is there anything specific you are trying to do with them?
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
  #3   Spotlight this post!  
Unread 05-02-2015, 16:40
TheTurtleofDoom TheTurtleofDoom is offline
Registered User
FRC #2988
 
Join Date: Feb 2014
Location: Virginia
Posts: 4
TheTurtleofDoom is an unknown quantity at this point
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation

Quote:
Originally Posted by nighterfighter View Post
Did you try just searching "Swigtype"?

While I am not 100% sure, I believe Swigtype is referring to this:

http://www.swig.org/

Is there anything specific you are trying to do with them?
No I didn't google that, and no I'm not trying to do anything with them, just saw the classes in the api and didn't know what they did, and couldn't find out anything about them.Thank you for this illuminating post.
  #4   Spotlight this post!  
Unread 05-02-2015, 17:28
baumgartensam's Avatar
baumgartensam baumgartensam is offline
Registered User
AKA: Sam Baumgarten
FRC #0751 (Barn2Robotics)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: United States
Posts: 42
baumgartensam will become famous soon enough
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation

I just dove into the source and the header for all the files named SWIGTYPE_* is:
Code:
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.11
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */
Not sure what they are for but they are definitely associated with http://www.swig.org. The uses also seem very strange. Brad Miller will probably have a better explanation

UPDATE:
"SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby, and Tcl." Maybe it has to do with the cross-compilation of wpilib?????

Last edited by baumgartensam : 05-02-2015 at 17:31.
  #5   Spotlight this post!  
Unread 05-02-2015, 18:11
James Kuszmaul James Kuszmaul is offline
NEFIRST CSA
FRC #0971 (Spartan Robotics)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Worcester, MA
Posts: 61
James Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud of
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation

In order to use certain HAL classes (written in C++) in the Java portion of WPILib, we create JNI bindings for those classes/functions. In the case of the new Talon SRX, we used swig to generate the JNI bindings for the CanTalonSRX class and then wrapped that with the CANTalon class. Those odd SWIGTYPE* classes are how swig handles c pointers in the JNI bindings. Teams should not need to use any of the swig-related classes; the CANTalon wrapper should implement all the necessary features.
__________________
FRC971 (Student) 2011-2014
FRC190 (College Mentor-ish) 2014
WPILib Development 2014-present
Closed Thread


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 21:09.

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