Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   HELP!! HELP!! (http://www.chiefdelphi.com/forums/showthread.php?t=84636)

krudeboy51 24-03-2010 23:12

HELP!! HELP!!
 
Hi, i am a new programmer on my team (team 369), i need help programing our axis camera in c++ this is it so far:

Quote:

#include "Vision/AxisCamera.h"
#include "Vision/HSLImage.h"

class RobotDemo : public SimpleRobot
AxisCamera *Camera;

void OperatorControl(void)

HSLImage image; //Creates an image
AxisCamera camera = AxisCamera::getInstance();
Camera->WriteResolution( 160x120 );
Camera.WriteBrightness(0);

but every time when i build it, there are many errors with it, CAN ANY ONE HELP ME PLEASE??? :confused:

EricH 24-03-2010 23:15

Re: HELP!! HELP!!
 
Can you get us a list, complete or partial, of the errors? That will help more than anything else for now.

The Lucas 24-03-2010 23:49

Re: HELP!! HELP!!
 
Quote:

Originally Posted by krudeboy51 (Post 942916)
Hi, i am a new programmer on my team (team 369), i need help programing our axis camera in c++ this is it so far:



but every time when i build it, there are many errors with it, CAN ANY ONE HELP ME PLEASE??? :confused:

Lets start with what I've bolded in the code below
Code:

//#include "Vision/AxisCamera.h"
//#include "Vision/HSLImage.h"
#include "WPILib.h"


class RobotDemo : public SimpleRobot
{
AxisCamera *Camera;

void OperatorControl(void)
{
HSLImage image; //Creates an image
AxisCamera camera = AxisCamera::GetInstance();
Camera->WriteResolution( 160x120 );
Camera.WriteBrightness(0);

Check to make sure you have done all the C++ updates. If you have then those header files should be commented out, WPILib is all you need.

krudeboy51 25-03-2010 00:07

Re: HELP!! HELP!!
 
im sorry i forgot they changed

Quote:

#include "Vision/AxisCamera.h"
to

Quote:

#include "Vision/HSLImage.h"


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

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