I am doing research on a vision based real-time motion control
system.
The software aspect I will develop was based on windows XP and visual
studio6.
The project has three parts.
The main windows frame as a GUI window. image processing and motor
controling.
Image capture:
I have designed a thread with high priority to let the image data
transfer from the camera. The image capture thread is a static
function of the CMainFrame( the class maintain the GUI). I designed a
class named CimagePorcess to track some objects on the images captured
continuesly.
Then I create a class named CmotorControl to communicate the motor
driver for control the movement.
My question is how these two class communicate with each other. eg.
when I finished the image processing procedure. How can I acesss the
instant of CmotorControl. Should I use "friend".
Should the two instant be the member of the CMainFrame member
varilables or be global.
I'm puzzled...
I'd be appreciate with your advice.