Go to Post Inspired by engineers and an innovative design. - JaneYoung [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 02-28-2010, 02:13 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Java Native Interface (For using code made in windriver)

Is there a way to either use Java Native Interface or JNA to combine C++ code compiled in windriver and Java code from netbeans, to run on the cRio?

From poking around the ported Java vision libraries, it seems as though JNA is used, so C++ code is being called.

How would one go about writing C++ code in windriver that could be used in Java?
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-01-2010, 12:42 AM
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Java Native Interface (For using code made in windriver)

Check thread at :
http://forums.usfirst.org/showthread.php?t=14672
Reply With Quote
  #3   Spotlight this post!  
Unread 03-01-2010, 01:52 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Java Native Interface (For using code made in windriver)

Thank you.

I don't normally check the USfirst forums for stuff like this, but I guess a broader search would have found it.

Now for the fun stuff Actually writing code
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #4   Spotlight this post!  
Unread 03-07-2010, 10:46 PM
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
Re: Java Native Interface (For using code made in windriver)

Quote:
Originally Posted by derekwhite View Post
Thank you Derek for your help. I managed to get the JNA working perfectly, at least for my purposes.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multithreading with Java? Anyone using it? adamdb Java 2 02-07-2010 11:39 PM
connecting to Crio using windriver Tds123 Programming 1 01-27-2010 01:21 PM
Java/Netbeans Camera Code for Classmate PC and Axis Camera joshholat Programming 1 01-23-2010 02:59 PM
Where can I find camera tracking code for Java? nikRbokRz Java 4 01-20-2010 11:35 PM
Using kevin's code for driving and camera tracking razzoc Programming 3 02-18-2007 08:50 AM


All times are GMT -5. The time now is 07:31 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