// Main Frame to display everything on
#ifndef __FRAME
#define __FRAME

#include "serial.h"
#include "servo.h"
#include "camera.h"
#include "process.h"
#include <wx/wxprec.h>
#define ID_FRAME           400
#define TIMER_MAIN         ID_FRAME+1

class clsFrame: public wxFrame {
	public:
		clsFrame(const wxString& title);
		wxPanel*    panel;

		clsSerial*  oSerial; // serial port	
		clsServo*   oServo;  // servos & manual control	
		clsCamera*  oCamera; // camera	
		clsProcess* oProcess; // processing	

		IplImage* img_main;         // image to process and display

		void OnTimer(wxCommandEvent&);
	
	private:
		wxTimer*  timer;
		bool      timer_processing; // prevent double-triggering	
};
#endif
