|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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)...
|
|
#2
|
|||
|
|||
|
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(); |
|
#3
|
|||
|
|||
|
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()?
|
|
#4
|
|||
|
|||
|
Re: Axis Camera help!
Also, which header files do we use?
|
|
#5
|
|||
|
|||
|
Re: Axis Camera help!
Code:
camera.WriteResolution(blah); Image *image = camera.GetImage(); |
|
#6
|
|||
|
|||
|
Re: Axis Camera help!
So far, I haven't noticed anything we need that isn't included in WPILib.h
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|