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?