Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Axis Camera help! (http://www.chiefdelphi.com/forums/showthread.php?t=100615)

Lawlhwut 19-01-2012 00:25

Axis Camera help!
 
When declaring the axis camera in our program, what do we put in the paranthesis?

Code:

class RobotDemo : public SimpleRobot
{
RobotDrive myRobot;
AxisCamera axis;
Joystick stick;

public:
RobotDemo(void):
myRobot(1,2),
axis(???????????????????????????????)
stick(1)...

What do I put in the ????????????????????? And to take a picture, do I just need axis.GetInstance, axis.GetImage? We need the image for particle analysis.

scottbot95 19-01-2012 01:10

Re: Axis Camera help!
 
You cannot do it that way. When you need to access the camera you have something like this:
Code:

AxisCamera &camera = AxisCamera::GetInstance();

Lawlhwut 19-01-2012 01:27

Re: Axis Camera help!
 
Then how would I do functions with the camera? For instancec if I want to do WriteResolution(640,480) or GetImage()?

Lawlhwut 19-01-2012 01:35

Re: Axis Camera help!
 
Also, which header files do we use?

scottbot95 19-01-2012 01:35

Re: Axis Camera help!
 
Code:

camera.WriteResolution(blah);
Image *image = camera.GetImage();

Make sure when getting an image you call IsFreshImage() first; it will save you some processing.

scottbot95 19-01-2012 01:37

Re: Axis Camera help!
 
So far, I haven't noticed anything we need that isn't included in WPILib.h


All times are GMT -5. The time now is 13:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi