Go to Post I think that one of the most fantastic parts about FIRST is that the biggest and most successful teams are also the most abiding to the rules. - Matt Adams [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 26-02-2010, 19:26
ellisk ellisk is offline
Registered User
FRC #1540
 
Join Date: Dec 2008
Location: Vancouver, WA
Posts: 41
ellisk is on a distinguished road
Camera leads to kernel exception?

We're trying to get image streaming working with our camera to the dashboard (we're using C++). The code we're using for setting up the image streaming is this:
Code:
	AxisCamera& camera = AxisCamera::GetInstance();
	camera.WriteResolution(AxisCamera::kResolution_320x240);
	camera.WriteCompression(20);
	camera.WriteBrightness(0);
which runs exactly once in our project, and runs only after the robot has been powered on for 10 seconds (to allow the camera to boot). However, this code makes my program crash with a kernel fault; it crashes within some vxworks network calls (recv). The actual robot program dies, but I do get a picture on the dashboard from the camera.

Does anyone have any idea why this might be happening?

Thanks,
Kevin
  #2   Spotlight this post!  
Unread 26-02-2010, 23:14
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 leads to kernel exception?

Setup NetConsole (from the WPI C++ updates page, initial version of WPILib for the season) and post what errors come up

With the dashboard pictures, are they continuing after the crash or is it a still picture once it crashes?
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #3   Spotlight this post!  
Unread 27-02-2010, 10:16
mandrews281 mandrews281 is offline
Registered User
FRC #0281
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Greenville SC
Posts: 82
mandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to beholdmandrews281 is a splendid one to behold
Re: Camera leads to kernel exception?

Where is this in your code? We had something similar, and it appeared that every time camera went out-of-scope, the global camera object was destroyed. The next time it came into scope it was re-constructed and destroyed again when it went out of scope. At least this was our theory.

As soon as we made sure the camera object stayed in scope. See the thread: http://www.chiefdelphi.com/forums/sh...ad.php?t=83259 for some hints about how to do that.
__________________
Michael Andrews
Team #281 Programming Mentor
  #4   Spotlight this post!  
Unread 28-02-2010, 19:53
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Camera leads to kernel exception?

Hi 281. Are you sure you have the latest updates? Just adding the camera code caused terminatin everytime until the last update.
Brian
__________________
Brian K
Team 1225 Robotics Mentor
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
VxWorks Kernel Cadyyan C/C++ 6 04-04-2009 19:37
Target Exception - Exception in Kernal Task Thxe C/C++ 3 10-02-2009 07:24
Run Kernel Task w/o reboot byteit101 Programming 4 12-01-2009 12:08
FP Motor Leads Bill Beatty Technical Discussion 7 07-04-2003 23:46
Wiper Motor Wire Leads Todd Lawless OCCRA 5 29-10-2002 21:37


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

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