Quote:
Originally Posted by Steve Warner
Has anybody converted the 2010 Image Demo from the SimpleRobot class to the IterativeRobot class? How did you define the camera so it's not local to only the function it's defined in and therefore lost between iterations? The AxisCamera class seems to work differently from all the other WPILib classes.
|
Declare a pointer in your IterativeRobot class:
Code:
AxisCamera * camera;
Then in your IterativeRobot constructor call:
Code:
camera = &(AxisCamera::GetInstance());
Use the dereference arrow -> instead of periods when calling camera methods.
Code above is from memory, so it may not work if you cut/paste, but hopefully it will help!
__________________
In life, what you give, you keep. What you fail to give, you lose forever...