View Single Post
  #2   Spotlight this post!  
Unread 26-01-2016, 18:39
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: [Vision] Multithreading?

as long as you're sure that this is what you want to do..

Code:
new Thread("Vision Processing Thread"){public void run(){
    while(true){
         camera.process()
         try{
               sleep(500);
         }catch(Exception e){}
    }
}}.start()
(apologies if syntax errrors i wrote this in the texte ditor)
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote