Log in

View Full Version : HELP!! HELP!!


krudeboy51
24-03-2010, 23:12
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:


#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
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
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
//#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
im sorry i forgot they changed

#include "Vision/AxisCamera.h"

to

#include "Vision/HSLImage.h"