// Main GPS Form ................................................................................ // Constructor, Initializes a new instance of the "FormGPS" class. public FormGPS() { //winform initialization InitializeComponent(); //create a new section and set left and right positions //created whether used or not, saves restarting program for (int j = 0; j < MAXSECTIONS; j++) { section[j] = new CSection(this); } // Get the OpenGL object. OpenGL gl = openGLControl.OpenGL; OpenGL glBack = openGLControlBack.OpenGL; //create the world grid worldGrid = new CWorldGrid(gl, this); //our vehicle made with gl object and pointer of mainform vehicle = new CVehicle(gl, this); //our NMEA parser pn = new CNMEA(this); //create the ABLine instance ABLine = new CABLine(gl, this); //new instance of contour mode ct = new CContour(gl, this); //new instance of auto headland turn yt = new CYouTurn(gl, this); //module communication mc = new CModuleComm(this); //perimeter list object periArea = new CPerimeter(gl); //boundary object boundary = new CBoundary(gl, glBack, this); //rate object rc = new CRate(this); //start the stopwatch swFrame.Start(); }
// Constructor, Initializes a new instance of the "FormGPS" class. public FormGPS() { //winform initialization InitializeComponent(); //build the gesture structures SetupStructSizes(); //create a new section and set left and right positions //created whether used or not, saves restarting program for (int j = 0; j < MAXSECTIONS; j++) { section[j] = new CSection(this); } // Get the OpenGL object. OpenGL gl = openGLControl.OpenGL; OpenGL glBack = openGLControlBack.OpenGL; //create the world grid worldGrid = new CWorldGrid(gl, this); //our vehicle made with gl object and pointer of mainform vehicle = new CVehicle(gl, this); //our NMEA parser pn = new CNMEA(this); //create the ABLine instance ABLine = new CABLine(gl, this); //new instance of contour mode ct = new CContour(gl, this); //new instance of contour mode curve = new CABCurve(gl, this); //new instance of auto headland turn yt = new CYouTurn(gl, glBack, this); //module communication mc = new CModuleComm(this); //perimeter list object periArea = new CPerimeter(gl); //boundary object boundz = new CBoundary(gl, glBack, this); //headland object hl = new CHeadland(gl, this); //rate object rc = new CRate(this); //headland entry/exit sequences seq = new CSequence(this); //nmea simulator built in. sim = new CSim(this); //all the autosteer objects ast = new CAutoSteer(this); //all the attitude, heading, roll, pitch reference system ahrs = new CAHRS(this); //A recorded path recPath = new CRecordedPath(gl, this); //start the stopwatch swFrame.Start(); //resource for gloabal language strings _rm = new ResourceManager("AgOpenGPS.gStr", Assembly.GetExecutingAssembly()); }