Go to Post People can talk a big game, but unless they start working on what they talk about, nothing will get done. - Lisa Perez [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 31-01-2010, 15:13
TPNigl TPNigl is offline
Registered User
FRC #0069 (Team HYPER)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Quincy, MA
Posts: 94
TPNigl is an unknown quantity at this point
Camera tracking code not working in our own program, but works in CircleTrackerDemo

Our team is able to get the tracking code to work when it is in the CircleTrackerDemo code, but when we put it in our own code along with the other stuff, it doesn't work and we get this error. Any ideas?

Code:
Uncaught exception in Thread.run():
[cRIO]     on thread edu.wpi.first.wpilibj.templates.RobotTemplate - main
[cRIO] java.lang.IllegalArgumentException: MIDlet class specified, edu.wpi.first.wpilibj.templates.RobotTemplate, was not found
[cRIO]     at java.lang.Throwable.<init>(88)
[cRIO]     at java.lang.Throwable.<init>(102)
[cRIO]     at java.lang.Exception.<init>(53)
[cRIO]     at java.lang.RuntimeException.<init>(58)
[cRIO]     at java.lang.IllegalArgumentException.<init>(54)
[cRIO]     at com.sun.squawk.imp.MIDletMainWrapper.main(94)
[cRIO]     in virtual method #95 of com.sun.squawk.Klass(bci=25)
[cRIO]     at com.sun.squawk.Isolate.run(1554)
[cRIO]     at java.lang.Thread.run(231)
[cRIO]     in virtual method #47 of com.sun.squawk.VMThread(bci=42)
[cRIO]     in static method #3 of com.sun.squawk.VM(bci=6)
__________________


2011 Pit Crew:
2011 CT Xerox Creativity Award

HYPER Alumni
  #2   Spotlight this post!  
Unread 31-01-2010, 17:27
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Camera tracking code not working in our own program, but works in CircleTrackerDe

Could be any number of things. Would be nice if we could see the code you are using
  #3   Spotlight this post!  
Unread 31-01-2010, 19:35
TPNigl TPNigl is offline
Registered User
FRC #0069 (Team HYPER)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Quincy, MA
Posts: 94
TPNigl is an unknown quantity at this point
Re: Camera tracking code not working in our own program, but works in CircleTrackerDe

Just figured out stuff. I actually put my code into the trackerdemo code and it worked fine. So now we're good. Thanks though!
__________________


2011 Pit Crew:
2011 CT Xerox Creativity Award

HYPER Alumni
  #4   Spotlight this post!  
Unread 31-01-2010, 19:40
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Camera tracking code not working in our own program, but works in CircleTrackerDe

Quote:
Originally Posted by TPNigl View Post
Just figured out stuff. I actually put my code into the trackerdemo code and it worked fine. So now we're good. Thanks though!
This took a good whole day for us to figure out, too. I thought there was a way to import the same code into our own program, but I guess not. Anyway, good to know that you've found the answer!
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code downloaded but not working... :( pudgeball C/C++ 4 28-01-2010 11:04
Camera moving but not tracking ijk90825 Programming 3 31-01-2009 14:40
Camera tracking but not moving penguain NI LabVIEW 9 30-01-2009 10:10
Camera Tracking not working? NinJA999 C/C++ 0 25-01-2009 15:28
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47


All times are GMT -5. The time now is 02:03.

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