Go to Post Many students I have met will insist that nothing is better than FIRST robotics. And most people would agree that a ham sandwich is better than nothing. So does it logically follow that a ham sandwich is better than FIRST robotics? - tsaksa [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-12-2012, 05:38 PM
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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