View Single Post
  #7   Spotlight this post!  
Unread 09-12-2010, 17:54
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
Re: Error: within this context

I really appreciate both of your replies, but making the corrections you suggested has led me to another problem.

Code:
class RobotDemo : public SimpleRobot
{
	RobotDrive myRobot; // robot drive system
	Gamepad controller;
	AxisCamera& camera;
	
public:
	RobotDemo(void):
		myRobot(10, 9, 2, 1),	
		controller(1)
	{                                     <-------------------------ERROR HERE
		GetWatchdog().SetExpiration(0.1);
	
		camera = AxisCamera::GetInstance();  <--------ERROR HERE
The first error says "uninitialized reference". How do I initialize it?
The second error gets me back to where I started. It says "error within this context".

This feels like one step forward then two steps back. Thanks for your help.
Reply With Quote