Go to Post Seriously, I figured we had until january before we started lawyering things again. - JamesBrown [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 27-01-2011, 22:02
flameout flameout is offline
AKA Ryan Van Why
FRC #0957 (SWARM)
Team Role: Alumni
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Oregon
Posts: 168
flameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to all
Java vision priority?

We have now separated vision off into its own thread (in java). However, I am still noticing lag in our Teleop response.

I suspect that the native NI Vision process is preempting the java VM, as Teleop is at a higher Java priority than our Java Vision code.

Is there a way to fix/work around this?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2011, 00:35
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Java vision priority?

In general, the vision libraries on the cRIO have a lot of processing to do. So no, you can't really do anything (the only thing you can do is give more time to the native code from the Java VM... not request more).

I moved our vision processing code to the driver-station laptop (I'm writing my own, there's also many image-processing libraries around) to remove control lag and get a better response time.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2011, 10:48
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Java vision priority?

Quote:
Originally Posted by flameout View Post
We have now separated vision off into its own thread (in java). However, I am still noticing lag in our Teleop response.

I suspect that the native NI Vision process is preempting the java VM, as Teleop is at a higher Java priority than our Java Vision code.

Is there a way to fix/work around this?
What's your resolution at? Try turning it all the way down
Also when is your vision processing done?
Try isolating it to just the autonomous or just when a trigger is pulled.
__________________
"Never let your schooling interfere with your education" -Mark Twain
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 22:17.

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