Changeset 4491


Ignore:
Timestamp:
08/04/04 16:49:20 (20 years ago)
Author:
merck
Message:
MMerck: Added AMCCmdState global variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/main.cpp

    r3401 r4491  
     1
    12/***************************************************************************
    23                          main.cpp  -  description
     
    2728#include "amcserialport.h"
    2829#include "amcstate.h"
     30#include "amccmdstate.h"
    2931#include "heatstate.h"
    3032#include "magicmirror.h"
     
    3739AMCState*                               g_pAMCState;
    3840HEATState*                              g_pHEATState;
    39 int                                                             g_iRefX, g_iRefY;
     41AMCCmdState*                    g_pAMCCmdState;
     42double                                          g_dRefX, g_dRefY;
    4043
    4144static const char *description =
     
    7073        qDebug("Creating HEATState");
    7174        g_pHEATState = new HEATState( 0 );
     75        qDebug("Creating AMCCmdState");
     76        g_pAMCCmdState = new AMCCmdState( 0 );
    7277
    7378        // First we open and initialize the 8 serial ports
     
    9398        qDebug("Creating MagicMirror");
    9499        g_theMirror = new MagicMirror();
    95         g_iRefX = -1;
    96         g_iRefY = -1;
     100        g_dRefX = -1.;
     101        g_dRefY = -1.;
    97102
    98103        qDebug("Creating ActiveMirrorControl");
     
    115120        qDebug("Deleting HeatState");
    116121        delete g_pHEATState;
     122        qDebug("Deleting AMCCmdState");
     123        delete g_pAMCCmdState;
    117124        qDebug("Deleting FrameGrabber");
    118125        delete g_pFG;
Note: See TracChangeset for help on using the changeset viewer.