View Single Post
  #1   Spotlight this post!  
Unread 09-12-2010, 01:42
ehlochbr ehlochbr is offline
Registered User
FRC #2990
 
Join Date: Nov 2010
Location: Salem, OR
Posts: 37
ehlochbr is an unknown quantity at this point
Error: within this context

I'm trying to add the code for the Axis camera and I keep seeing this error when I build the project "error: within this context".

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

class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive system
Gamepad controller;
AxisCamera camera;

public:
RobotDemo(void):
myRobot(10, 9, 2, 1), // these must be initialized in the same order
controller(1)
{ <------ERROR HERE

All I did was add the AxisCamera header file and the identifier (AxisCamera camera).

What am I missing? Thanks.
Reply With Quote