View Single Post
  #1   Spotlight this post!  
Unread 12-02-2012, 17:38
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
AxisCamera Declaration help

We need help with declaring our axiscamera.

We already declared it like this:

Camera.cpp:
Code:
AxisCamera &camera = AxisCamera::GetInstance();
And this works, but we need it to be declared globally. Like this:

Camera.h:
Code:
AxisCamera *camera;
Camera.cpp:
Code:
&camera = AxisCamera::GetInstance();
But this does not seem to work. The reason we need it global is because we want to be able to access it in other classes, such as MyRobot.

How can we do this?
__________________
Eagle Engineering 1138
Reply With Quote